Class MeasureToken
A Token representing a measurement.
Implements
Inherited Members
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
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 |