AlternateWordForm
AlternateWordForm
AlternateWordForm
AlternateWordForm
Class
Definition
Identifies an alternate form of the word represented by a WordSegment object.. For example, this may contain a number in a normalized format.
public : sealed class AlternateWordForm : IAlternateWordFormpublic sealed class AlternateWordForm : IAlternateWordFormPublic NotInheritable Class AlternateWordForm Implements IAlternateWordForm// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Remarks
Your code does not create instances of this class. It retrieves them from a WordSegment.AlternateForms list.
The value of the AlternateNormalizationFormat property indicates the normalization format used to format the AlternateText property. It is one of the following possible normalization formats.
When NormalizationFormat property is AlternateNormalizationFormat.Number, "." is used to indicate the decimal separator, and a leading "-" indicates that the number is negative.
When NormalizationFormat is AlternateNormalizationFormat.Currency, "." is used to indicate the decimal separator, a leading "-" indicates that the number is negative, and the text following the last digit is the currency symbol.
When NormalizationFormat is AlternateNormalizationFormat.Date, the result is "YYYY-MM-DD", where "YYYY" is the Gregorian year (0-padded), "MM" is the numerical month (0-padded), and "DD" is the day (0-padded).
When NormalizationFormat is AlternateNormalizationFormat.Time, the result is "HH:MM:SS", where "HH" is the hour in 24-hour time (0-padded) (0-23), "MM" is the minute (0-padded), and "SS" is the seconds (0-padded).
Properties
AlternateText AlternateText AlternateText AlternateText
Gets the text of the alternate word form identified by this AlternateWordForm object.
public : PlatForm::String AlternateText { get; }public string AlternateText { get; }Public ReadOnly Property AlternateText As string// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
The alternate word form.
- See Also
NormalizationFormat NormalizationFormat NormalizationFormat NormalizationFormat
Gets the normalization format for this current AlternateWordForm object.
public : AlternateNormalizationFormat NormalizationFormat { get; }public AlternateNormalizationFormat NormalizationFormat { get; }Public ReadOnly Property NormalizationFormat As AlternateNormalizationFormat// You can use this property in JavaScript.
- Value
- AlternateNormalizationFormat AlternateNormalizationFormat AlternateNormalizationFormat AlternateNormalizationFormat
The normalization format.
- See Also
SourceTextSegment SourceTextSegment SourceTextSegment SourceTextSegment
Gets the TextSegment that identifies the source text's sub-string for which this AlternateWordForm object is an alternate.
public : TextSegment SourceTextSegment { get; }public TextSegment SourceTextSegment { get; }Public ReadOnly Property SourceTextSegment As TextSegment// You can use this property in JavaScript.
The TextSegment structure that identifies the word in your provided text.
- See Also