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