menu

UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DigitToken - UWP API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DigitToken

    Class used for describing Digit Tokens.

    Inheritance
    System.Object
    FormatTokenBase
    SingleCharToken
    DigitToken
    InsignificantDigitToken
    PlaceReservedDigitToken
    SignificantDigitToken
    Implements
    System.ICloneable
    Inherited Members
    FormatTokenBase.ApplyFormat(Double)
    FormatTokenBase.ApplyFormat(String)
    FormatTokenBase.Clone()
    FormatTokenBase.DEF_OPTIONS
    FormatTokenBase.FindString(String[], String, Int32, Boolean)
    FormatTokenBase.Format
    FormatTokenBase.m_strFormat
    FormatTokenBase.OnFormatChange()
    FormatTokenBase.TokenType
    FormatTokenBase.TryParseRegex(Regex, String, Int32)
    FormatTokenBase.TryParseRegex(Regex, String, Int32, Match)
    SingleCharToken.FormatChar
    SingleCharToken.TryParse(String, Int32)
    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
    SingleCharToken.ApplyFormat(ref Double, Boolean, CultureInfo, FormatSection)

    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
    SingleCharToken.ApplyFormat(String, Boolean)

    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.

    Implements

    System.ICloneable

    Extension Methods

    DateTimeExtension.ToDateTime(Object)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved