Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 1.69 KB

alternatewordform.md

File metadata and controls

33 lines (20 loc) · 1.69 KB
-api-id -api-type -api-device-family-note
T:Windows.Data.Text.AlternateWordForm
winrt class
xbox

Windows.Data.Text.AlternateWordForm

-description

Identifies an alternate form of the word represented by a WordSegment object. For example, this may contain a number in a normalized format.

-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).

-examples

-see-also