Class DigitToken
Class used for describing Digit Tokens.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.XlsIO.FormatParser.FormatTokens
Assembly: Syncfusion.XlsIO.UWP.dll
Syntax
public abstract class DigitToken : SingleCharToken, ICloneable
Constructors
DigitToken()
Initializes a new instance of the DigitToken class.
Declaration
public DigitToken()
Properties
IsCenterDigit
Gets or sets a value indicating whether this digit is last in the sequence of digits.
Declaration
public bool IsCenterDigit { get; }
Property Value
Type |
---|
System.Boolean |
IsLastDigit
Gets or sets a value indicating whether this digit is last in the sequence of digits and all significant numbers should be displayed. Read-only.
Declaration
public bool IsLastDigit { get; set; }
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
GetDigit(ref Double)
Gets single digit from number and updates number.
Declaration
protected int GetDigit(ref double value)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value | Number to get digit from. |
Returns
Type | Description |
---|---|
System.Int32 | Extracted digit. |
GetDigitString(Double, Int32, Boolean)
Returns string representation according to the current format and digit value.
Declaration
protected virtual string GetDigitString(double value, int iDigit, bool bShowHiddenSymbols)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value | Value after removing current digit. |
System.Int32 | iDigit | Digit to convert into string. |
System.Boolean | bShowHiddenSymbols | Indicates whether to show hidden symbols. |
Returns
Type | Description |
---|---|
System.String | Converted value. |