Class MeasureToken
Inheritance
System.Object
MeasureToken
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Sdl.LanguagePlatform.Core.dll
public class MeasureToken : NumberToken, ILocalizableToken
Constructors
Declaration
public MeasureToken(MeasureToken other)
Parameters
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 |
|
Declaration
public MeasureToken(string text, NumberToken numericPart, Unit unit, string unitString, char unitSeparator, string customCategory)
Parameters
Type |
Name |
Description |
System.String |
text |
|
NumberToken |
numericPart |
|
Unit |
unit |
|
System.String |
unitString |
|
System.Char |
unitSeparator |
|
System.String |
customCategory |
|
Declaration
public MeasureToken(string text, string sign, string decimalPart, string fractionalPart, Unit unit, string unitString, char unitSeparator, NumberFormatInfo format)
Parameters
Type |
Name |
Description |
System.String |
text |
|
System.String |
sign |
|
System.String |
decimalPart |
|
System.String |
fractionalPart |
|
Unit |
unit |
|
System.String |
unitString |
|
System.Char |
unitSeparator |
|
System.Globalization.NumberFormatInfo |
format |
|
Properties
Declaration
public string CustomCategory { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
public override bool IsPlaceable { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Declaration
public override bool IsSubstitutable { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Declaration
public bool IsValid { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public Unit Unit { get; set; }
Property Value
Declaration
public char UnitSeparator { get; set; }
Property Value
Type |
Description |
System.Char |
|
Declaration
public string UnitString { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
Declaration
public override void AcceptSegmentElementVisitor(ISegmentElementVisitor visitor)
Parameters
Overrides
Declaration
public override SegmentElement Duplicate()
Returns
Overrides
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
Declaration
public override SegmentElement.Similarity GetSimilarity(SegmentElement other)
Parameters
Returns
Overrides
Declaration
public override SegmentElement.Similarity GetSimilarity(SegmentElement other, bool allowCompatibility)
Parameters
Type |
Name |
Description |
SegmentElement |
other |
|
System.Boolean |
allowCompatibility |
|
Returns
Overrides
Declaration
protected override TokenType GetTokenType()
Returns
Overrides
Declaration
public override bool Localize(CultureInfo culture, AutoLocalizationSettings autoLocalizationSettings)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Overrides
Declaration
public override bool Localize(CultureInfo culture, AutoLocalizationSettings autoLocalizationSettings, ILocalizableToken originalMemoryToken, bool adjustCasing)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Overrides
Declaration
public override bool SetValue(Token blueprint, bool keepNumericSeparators)
Parameters
Type |
Name |
Description |
Token |
blueprint |
|
System.Boolean |
keepNumericSeparators |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
Implements