Class CultureToken
Class used for Culture Tokens.
Implements
System.ICloneable
  Inherited Members
Namespace: Syncfusion.XlsIO.FormatParser.FormatTokens
Assembly: Syncfusion.XlsIO.NET.dll
Syntax
public class CultureToken : FormatTokenBase, ICloneable
  Constructors
CultureToken()
Initializes a new instance of the CultureToken class.
Declaration
public CultureToken()
  Properties
Culture
Gets the culture info. Read-only.
Declaration
public CultureInfo Culture { get; }
  Property Value
| Type | 
|---|
| System.Globalization.CultureInfo | 
TokenType
Returns type of the token. Read-only.
Declaration
public override TokenType TokenType { get; }
  Property Value
| Type | 
|---|
| TokenType | 
Overrides
UseSystemSettings
Gets a value indicating whether we should ignore all following format tokens and use system date format. Read-only.
Declaration
public bool UseSystemSettings { get; }
  Property Value
| Type | 
|---|
| System.Boolean | 
Methods
ApplyFormat(ref Double, Boolean, CultureInfo, FormatSection)
Applies format to the value.
Declaration
public override string ApplyFormat(ref double value, bool bShowHiddenSymbols, CultureInfo culture, FormatSection section)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Double | value | Value to format.  | 
      
| System.Boolean | bShowHiddenSymbols | Indicates whether to put in result hidden symbols.  | 
      
| System.Globalization.CultureInfo | culture | Culture used to convert value into text.  | 
      
| FormatSection | section | Parent section.  | 
      
Returns
| Type | Description | 
|---|---|
| System.String | Formatted value.  | 
      
Overrides
ApplyFormat(String, Boolean)
Applies format to the value.
Declaration
public override string ApplyFormat(string value, bool bShowHiddenSymbols)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | value | Value to format.  | 
      
| System.Boolean | bShowHiddenSymbols | Indicates whether to put in result hidden symbols.  | 
      
Returns
| Type | Description | 
|---|---|
| System.String | Formatted value.  | 
      
Overrides
TryParse(String, Int32)
Tries to parse format string.
Declaration
public override int TryParse(string strFormat, int iIndex)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | strFormat | Format string to parse.  | 
      
| System.Int32 | iIndex | Position to start parsing at.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Int32 | Position after parsed block.  | 
      
Overrides
Implements
      System.ICloneable