Click or drag to resize
MeasureToken Class
A Token which represents a measurement, which consists of a numeric value and a unit.
Inheritance Hierarchy

Namespace: Sdl.LanguagePlatform.Core.Tokenization
Assembly: Sdl.LanguagePlatform.Core (in Sdl.LanguagePlatform.Core.dll) Version: 1.6.0.0 (1.7.3164.0)
Syntax
public class MeasureToken : NumberToken, 
	ILocalizableToken

The MeasureToken type exposes the following members.

Constructors
  NameDescription
Public methodMeasureToken(MeasureToken)
Initializes a new instance with the values of another instance, creating a deep copy.
Public methodMeasureToken(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.
Public methodMeasureToken(String, String, String, String, Unit, String, Char, NumberFormatInfo)
Initializes a new instance with the specified values.
Top
Properties
  NameDescription
Public propertyAlternateDecimalSeparator
Gets or sets an alternate decimal separator, which is a single char if an alternate separator is used, or the null character if no alternate separator is used.
(Inherited from NumberToken.)
Public propertyAlternateGroupSeparator
Gets or sets an alternate group separator, which is a single char if an alternate separator is used, or the null character if no alternate separator is used.
(Inherited from NumberToken.)
Public propertyDecimalSeparator
Gets or sets the decimal separator
(Inherited from NumberToken.)
Public propertyGroupSeparator
Gets or sets the group separator
(Inherited from NumberToken.)
Public propertyIsPlaceable
IsPlaceable. Always true for this class.
(Overrides NumberTokenIsPlaceable.)
Public propertyIsPunctuation
true iff the token is a general punctuation, an opening punctuation, or a closing punctuation
(Inherited from Token.)
Public propertyIsSubstitutable
IsSubstitutable. Always true for this class.
(Overrides NumberTokenIsSubstitutable.)
Public propertyIsValid
Gets a boolean value which indicates whether this measurement is valid. A measurement is valid if either the unit is not the default unit (NoUnit) or the UnitString is set. In most cases, both are set by the tokenizer.
Public propertyIsWhitespace
Gets a value which indicates whether this token is a whitespace token or not.
(Inherited from Token.)
Public propertyIsWord
true iff the token is a word, an abbreviation, or an acronym
(Inherited from Token.)
Public propertyRawDecimalDigits
Gets or sets the raw decimal digits, which are a sequence of digits without separators or signs.
(Inherited from NumberToken.)
Public propertyRawFractionalDigits
Gets or sets the raw fractional digits, which are a sequence of digits without separators or signs.
(Inherited from NumberToken.)
Public propertyRawSign
Gets or sets the "raw" sign, i.e. the textual representation of the sign
(Inherited from NumberToken.)
Public propertySign
Gets or sets the sign.
(Inherited from NumberToken.)
Public propertySpan
Gets or sets the span covered by this token in the original segment.
(Inherited from Token.)
Public propertyText
Gets or sets the token's text.
(Inherited from Token.)
Public propertyType
Gets, or sets, the TokenType of this token.
(Inherited from Token.)
Public propertyUnit
Gets or sets the unit.
Public propertyUnitSeparator
Gets or sets the unit separator.
Public propertyUnitString
Gets or sets the unit string, in case the unit is unknown.
Public propertyValue
Gets or sets the numeric value. Do not use the setter, it is for internal purposes only.
(Inherited from NumberToken.)
Public propertyValueValid
Gets or sets the flag whether the numeric value is valid or not. Do not use the setter, it is for internal purposes only.
(Inherited from NumberToken.)
Top
Methods
  NameDescription
Public methodAcceptSegmentElementVisitor
Visitor pattern implementation. Calls VisitNumberToken(NumberToken).
(Inherited from NumberToken.)
Public methodDuplicate (Overrides NumberTokenDuplicate.)
Public methodEquals
Equals(object)
(Overrides NumberTokenEquals(Object).)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFormatNumber(CultureInfo)
Format the number according to the provided culture, applying overrides for separators as appropriate. This method uses a proprietary implementation for the formatting and does not use the default .Net formatting methods.
(Inherited from NumberToken.)
Public methodFormatNumber(NumberFormatInfo)
Format the number according to the provided number format information, applying overrides for separators as appropriate. This method uses a proprietary implementation for the formatting and does not use the default .Net formatting methods.
(Inherited from NumberToken.)
Public methodGetHashCode
[M:System.Object.GetHashCode()]
(Overrides NumberTokenGetHashCode.)
Public methodGetSimilarity (Overrides NumberTokenGetSimilarity(SegmentElement).)
Protected methodGetTokenType (Overrides NumberTokenGetTokenType.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetWeakHashCode (Inherited from Token.)
Public methodLocalize(CultureInfo, AutoLocalizationSettings)
Auto-localizes the token according to the settings of the specified target culture and the provided auto-localization settings. The text of the token will be changed, but not the values.

For some token types, special AutoLocalizationSettings will be used, if provided.

(Overrides NumberTokenLocalize(CultureInfo, AutoLocalizationSettings).)
Public methodLocalize(CultureInfo, AutoLocalizationSettings, ILocalizableToken, Boolean)
Auto-localizes the token according to the settings of the specified target culture and the provided auto-localization settings. The text of the token will be changed, but not the values.

For some token types, special AutoLocalizationSettings will be used, if provided.

(Overrides NumberTokenLocalize(CultureInfo, AutoLocalizationSettings, ILocalizableToken, Boolean).)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodSetTokenType (Inherited from Token.)
Public methodSetValue(Token, Boolean)
Overwrites the current token's value with the value from blueprint, which also must be a DateTimeToken. Note that only the value and the type are overwritten, not the textual representation.
(Overrides NumberTokenSetValue(Token, Boolean).)
Public methodSetValue(String, String, String, NumberFormatInfo)
Overwrites the current token values with the specified values.
(Inherited from NumberToken.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also
Community
Edit

Be the first to Edit the community content of this topic.
Comments