Class DigitToken
Class used for describing Digit Tokens.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.XlsIO.FormatParser.FormatTokens
Assembly: Syncfusion.XlsIO.NET.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 |
|---|
| bool |
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 |
|---|
| bool |
Methods
ApplyFormat(ref double, bool, 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 |
|---|---|---|
| double | value | Value to format. |
| bool | bShowHiddenSymbols | Indicates whether to put in result hidden symbols. |
| CultureInfo | culture | Culture used to convert value into text. |
| FormatSection | section | Parent section. |
Returns
| Type | Description |
|---|---|
| string | Formatted value. |
Overrides
ApplyFormat(string, bool)
Applies format to the value.
Declaration
public override string ApplyFormat(string value, bool bShowHiddenSymbols)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | Value to format. |
| bool | bShowHiddenSymbols | Indicates whether to put in result hidden symbols. |
Returns
| Type | Description |
|---|---|
| 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 |
|---|---|---|
| double | value | Number to get digit from. |
Returns
| Type | Description |
|---|---|
| int | Extracted digit. |
GetDigitString(double, int, bool)
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 |
|---|---|---|
| double | value | Value after removing current digit. |
| int | iDigit | Digit to convert into string. |
| bool | bShowHiddenSymbols | Indicates whether to show hidden symbols. |
Returns
| Type | Description |
|---|---|
| string | Converted value. |