ClassFormatStringCategoryManager
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:
public static class FormatStringCategoryManager
Inheritance: objectFormatStringCategoryManager
Methods
BelongsToFormatStringCategory(string, FormatStringCategory)
Determines whether the specified format string belongs to the given category.
Declaration
public static bool BelongsToFormatStringCategory(string formatString, FormatStringCategory category)
Parameters
formatString
The format string.
category
The category.
Returns
GetCategoryFromFormatString(string)
Determines the category of the specified format string by testing against each category predicate.
Declaration
public static FormatStringCategory GetCategoryFromFormatString(string localFormatString)
Parameters
localFormatString
The local format string.
Returns
TryGetAccountingFormatStringInfo(string, out AccountingFormatStringInfo)
Attempts to parse the format string as an accounting format and returns configuration information.
Declaration
public static bool TryGetAccountingFormatStringInfo(string formatString, out AccountingFormatStringInfo formatStringInfo)
Parameters
formatString
The format string.
formatStringInfo
The format string info.
Returns
TryGetCurrencyFormatStringInfo(string, out CurrencyFormatStringInfo)
Attempts to parse the format string as a currency format and returns configuration information.
Declaration
public static bool TryGetCurrencyFormatStringInfo(string formatString, out CurrencyFormatStringInfo formatStringInfo)
Parameters
formatString
The format string.
formatStringInfo
The format string info.
Returns
TryGetDateFormatStringInfo(string, out DateFormatStringInfo)
Attempts to parse the format string as a date format and returns configuration information.
Declaration
public static bool TryGetDateFormatStringInfo(string formatString, out DateFormatStringInfo formatStringInfo)
Parameters
formatString
The format string.
formatStringInfo
The format string info.
Returns
TryGetNumberFormatStringInfo(string, out NumberFormatStringInfo)
Attempts to parse the format string as a number format and returns configuration information.
Declaration
public static bool TryGetNumberFormatStringInfo(string formatString, out NumberFormatStringInfo formatStringInfo)
Parameters
formatString
The format string.
formatStringInfo
The format string info.
Returns
TryGetPercentageFormatStringInfo(string, out PercentageFormatStringInfo)
Attempts to parse the format string as a percentage format and returns configuration information.
Declaration
public static bool TryGetPercentageFormatStringInfo(string formatString, out PercentageFormatStringInfo formatStringInfo)
Parameters
formatString
The format string.
formatStringInfo
The format string info.
Returns
TryGetScientificFormatStringInfo(string, out ScientificFormatStringInfo)
Attempts to parse the format string as a scientific format and returns configuration information.
Declaration
public static bool TryGetScientificFormatStringInfo(string formatString, out ScientificFormatStringInfo formatStringInfo)
Parameters
formatString
The format string.
formatStringInfo
The format string info.
Returns
TryGetSpecialFormatStringInfo(string, out SpecialFormatStringInfo)
Attempts to parse the format string as a special format and returns configuration information.
Declaration
public static bool TryGetSpecialFormatStringInfo(string formatString, out SpecialFormatStringInfo formatStringInfo)
Parameters
formatString
The format string.
formatStringInfo
The format string info.
Returns
TryGetTimeFormatStringInfo(string, out TimeFormatStringInfo)
Attempts to parse the format string as a time format and returns configuration information.
Declaration
public static bool TryGetTimeFormatStringInfo(string formatString, out TimeFormatStringInfo formatStringInfo)
Parameters
formatString
The format string.
formatStringInfo
The format string info.
Returns