Search Results for

    Show / Hide Table of Contents

    Class MeasureToken

    A Token representing a measurement.

    Inheritance
    System.Object
    Token
    NumberToken
    MeasureToken
    Implements
    ICloneable<Token>
    Inherited Members
    NumberToken.Sign
    NumberToken.RawSign
    NumberToken.DecimalSeparator
    NumberToken.GroupSeparator
    NumberToken.AlternateGroupSeparator
    NumberToken.AlternateDecimalSeparator
    NumberToken.RawFractionalDigits
    NumberToken.RawDecimalDigits
    Token.Clone()
    Token.ToString()
    Token.Text
    Token.Span
    Namespace: Sdl.Core.Bcm.BcmModel.Tokenization.Tokens
    Assembly: Sdl.Core.Bcm.BcmModel.dll
    Syntax
    public class MeasureToken : NumberToken, ICloneable<Token>
    Remarks

    A measurement is defined as a combination of a number followed by a unit.

    Constructors

    MeasureToken()

    Initializes a new instance of the MeasureToken class.

    Declaration
    public MeasureToken()

    MeasureToken(String, NumberToken, Unit, String, Char)

    Initializes a new instance with the specified values. This constructor is for internal purposes only and should not be used directly.

    Declaration
    public MeasureToken(string text, NumberToken numericPart, Unit unit, string unitString, char unitSeparator)
    Parameters
    Type Name Description
    System.String text
    NumberToken numericPart
    Unit unit
    System.String unitString
    System.Char unitSeparator

    Properties

    Type

    Gets the type of Token.

    Declaration
    protected override string Type { get; }
    Property Value
    Type Description
    System.String

    The type.

    Overrides
    NumberToken.Type

    Unit

    Gets or sets the unit.

    Declaration
    public Unit Unit { get; set; }
    Property Value
    Type Description
    Unit

    UnitSeparator

    Gets or sets the unit separator.

    Declaration
    public char UnitSeparator { get; set; }
    Property Value
    Type Description
    System.Char

    UnitString

    Gets or sets the unit string, in case the unit is unknown.

    Declaration
    public string UnitString { get; set; }
    Property Value
    Type Description
    System.String

    Implements

    ICloneable<T>

    See Also

    NumberToken

    On this page

    Back to top Generated by DocFX