AlternateWordForm 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
struct winrt::Windows::Data::Text::AlternateWordForm
public sealed class AlternateWordForm
Public NotInheritable Class AlternateWordForm
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

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 AlternateText

Gets the text of the alternate word form identified by this AlternateWordForm object.

NormalizationFormat NormalizationFormat NormalizationFormat NormalizationFormat NormalizationFormat

Gets the normalization format for this current AlternateWordForm object.

SourceTextSegment SourceTextSegment SourceTextSegment SourceTextSegment SourceTextSegment

Gets the TextSegment that identifies the source text's sub-string for which this AlternateWordForm object is an alternate.