New to Telerik Document ProcessingStart a free 30-day trial

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:

C#
public static class FormatStringCategoryManager

Inheritance: objectFormatStringCategoryManager

Methods

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

C#
public static bool BelongsToFormatStringCategory(string formatString, FormatStringCategory category)
Parameters:formatStringstring

The format string.

categoryFormatStringCategory

The category.

Returns:

bool

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

C#
public static FormatStringCategory GetCategoryFromFormatString(string localFormatString)
Parameters:localFormatStringstring

The local format string.

Returns:

FormatStringCategory

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

C#
public static bool TryGetAccountingFormatStringInfo(string formatString, out AccountingFormatStringInfo formatStringInfo)
Parameters:formatStringstring

The format string.

formatStringInfoAccountingFormatStringInfo

The format string info.

Returns:

bool

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

C#
public static bool TryGetCurrencyFormatStringInfo(string formatString, out CurrencyFormatStringInfo formatStringInfo)
Parameters:formatStringstring

The format string.

formatStringInfoCurrencyFormatStringInfo

The format string info.

Returns:

bool

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

C#
public static bool TryGetDateFormatStringInfo(string formatString, out DateFormatStringInfo formatStringInfo)
Parameters:formatStringstring

The format string.

formatStringInfoDateFormatStringInfo

The format string info.

Returns:

bool

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

C#
public static bool TryGetNumberFormatStringInfo(string formatString, out NumberFormatStringInfo formatStringInfo)
Parameters:formatStringstring

The format string.

formatStringInfoNumberFormatStringInfo

The format string info.

Returns:

bool

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

C#
public static bool TryGetPercentageFormatStringInfo(string formatString, out PercentageFormatStringInfo formatStringInfo)
Parameters:formatStringstring

The format string.

formatStringInfoPercentageFormatStringInfo

The format string info.

Returns:

bool

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

C#
public static bool TryGetScientificFormatStringInfo(string formatString, out ScientificFormatStringInfo formatStringInfo)
Parameters:formatStringstring

The format string.

formatStringInfoScientificFormatStringInfo

The format string info.

Returns:

bool

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

C#
public static bool TryGetSpecialFormatStringInfo(string formatString, out SpecialFormatStringInfo formatStringInfo)
Parameters:formatStringstring

The format string.

formatStringInfoSpecialFormatStringInfo

The format string info.

Returns:

bool

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

C#
public static bool TryGetTimeFormatStringInfo(string formatString, out TimeFormatStringInfo formatStringInfo)
Parameters:formatStringstring

The format string.

formatStringInfoTimeFormatStringInfo

The format string info.

Returns:

bool