Class
FormatStringCategoryManager

Determines the category of format strings and validates format string membership in specific categories.

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.Formatting.FormatStrings

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Syntax:

cs-api-definition
public static class FormatStringCategoryManager

Inheritance: objectFormatStringCategoryManager

Methods

BelongsToFormatStringCategory(string, FormatStringCategory)

Determines whether the specified format string belongs to the given category.

Declaration

cs-api-definition
public static bool BelongsToFormatStringCategory(string formatString, FormatStringCategory category)

Parameters

formatString

string

The format string.

category

FormatStringCategory

The category.

Returns

bool

GetCategoryFromFormatString(string)

Determines the category of the specified format string by testing against each category predicate.

Declaration

cs-api-definition
public static FormatStringCategory GetCategoryFromFormatString(string localFormatString)

Parameters

localFormatString

string

The local format string.

Returns

FormatStringCategory

TryGetAccountingFormatStringInfo(string, out AccountingFormatStringInfo)

Attempts to parse the format string as an accounting format and returns configuration information.

Declaration

cs-api-definition
public static bool TryGetAccountingFormatStringInfo(string formatString, out AccountingFormatStringInfo formatStringInfo)

Parameters

formatString

string

The format string.

formatStringInfo

AccountingFormatStringInfo

The format string info.

Returns

bool

TryGetCurrencyFormatStringInfo(string, out CurrencyFormatStringInfo)

Attempts to parse the format string as a currency format and returns configuration information.

Declaration

cs-api-definition
public static bool TryGetCurrencyFormatStringInfo(string formatString, out CurrencyFormatStringInfo formatStringInfo)

Parameters

formatString

string

The format string.

formatStringInfo

CurrencyFormatStringInfo

The format string info.

Returns

bool

TryGetDateFormatStringInfo(string, out DateFormatStringInfo)

Attempts to parse the format string as a date format and returns configuration information.

Declaration

cs-api-definition
public static bool TryGetDateFormatStringInfo(string formatString, out DateFormatStringInfo formatStringInfo)

Parameters

formatString

string

The format string.

formatStringInfo

DateFormatStringInfo

The format string info.

Returns

bool

TryGetNumberFormatStringInfo(string, out NumberFormatStringInfo)

Attempts to parse the format string as a number format and returns configuration information.

Declaration

cs-api-definition
public static bool TryGetNumberFormatStringInfo(string formatString, out NumberFormatStringInfo formatStringInfo)

Parameters

formatString

string

The format string.

formatStringInfo

NumberFormatStringInfo

The format string info.

Returns

bool

TryGetPercentageFormatStringInfo(string, out PercentageFormatStringInfo)

Attempts to parse the format string as a percentage format and returns configuration information.

Declaration

cs-api-definition
public static bool TryGetPercentageFormatStringInfo(string formatString, out PercentageFormatStringInfo formatStringInfo)

Parameters

formatString

string

The format string.

formatStringInfo

PercentageFormatStringInfo

The format string info.

Returns

bool

TryGetScientificFormatStringInfo(string, out ScientificFormatStringInfo)

Attempts to parse the format string as a scientific format and returns configuration information.

Declaration

cs-api-definition
public static bool TryGetScientificFormatStringInfo(string formatString, out ScientificFormatStringInfo formatStringInfo)

Parameters

formatString

string

The format string.

formatStringInfo

ScientificFormatStringInfo

The format string info.

Returns

bool

TryGetSpecialFormatStringInfo(string, out SpecialFormatStringInfo)

Attempts to parse the format string as a special format and returns configuration information.

Declaration

cs-api-definition
public static bool TryGetSpecialFormatStringInfo(string formatString, out SpecialFormatStringInfo formatStringInfo)

Parameters

formatString

string

The format string.

formatStringInfo

SpecialFormatStringInfo

The format string info.

Returns

bool

TryGetTimeFormatStringInfo(string, out TimeFormatStringInfo)

Attempts to parse the format string as a time format and returns configuration information.

Declaration

cs-api-definition
public static bool TryGetTimeFormatStringInfo(string formatString, out TimeFormatStringInfo formatStringInfo)

Parameters

formatString

string

The format string.

formatStringInfo

TimeFormatStringInfo

The format string info.

Returns

bool