Class FormatStringCategoryManager
Determines the category of format strings and validates format string membership in specific categories.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Spreadsheet.Formatting.FormatStrings
Assembly: Telerik.Windows.Documents.Spreadsheet.dll
Syntax
public static class FormatStringCategoryManager
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
|
System.String
formatString
The format string. |
|
FormatStringCategory
category
The category. |
Returns
|
System.Boolean
|
GetCategoryFromFormatString(String)
Determines the category of the specified format string by testing against each category predicate.
Declaration
public static FormatStringCategory GetCategoryFromFormatString(string localFormatString)
Parameters
|
System.String
localFormatString
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
public static bool TryGetAccountingFormatStringInfo(string formatString, out AccountingFormatStringInfo formatStringInfo)
Parameters
|
System.String
formatString
The format string. |
|
AccountingFormatStringInfo
formatStringInfo
The format string info. |
Returns
|
System.Boolean
|
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
|
System.String
formatString
The format string. |
|
CurrencyFormatStringInfo
formatStringInfo
The format string info. |
Returns
|
System.Boolean
|
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
|
System.String
formatString
The format string. |
|
DateFormatStringInfo
formatStringInfo
The format string info. |
Returns
|
System.Boolean
|
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
|
System.String
formatString
The format string. |
|
NumberFormatStringInfo
formatStringInfo
The format string info. |
Returns
|
System.Boolean
|
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
|
System.String
formatString
The format string. |
|
PercentageFormatStringInfo
formatStringInfo
The format string info. |
Returns
|
System.Boolean
|
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
|
System.String
formatString
The format string. |
|
ScientificFormatStringInfo
formatStringInfo
The format string info. |
Returns
|
System.Boolean
|
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
|
System.String
formatString
The format string. |
|
SpecialFormatStringInfo
formatStringInfo
The format string info. |
Returns
|
System.Boolean
|
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
|
System.String
formatString
The format string. |
|
TimeFormatStringInfo
formatStringInfo
The format string info. |
Returns
|
System.Boolean
|