WordSegment WordSegment WordSegment WordSegment WordSegment Class

Definition

Represents a word from your provided text.

Words in this class do not include trailing whitespace or punctuation. This class can also expose alternate forms of words, and normalized numbers, currencies, dates, and times.

public : sealed class WordSegment
struct winrt::Windows::Data::Text::WordSegment
public sealed class WordSegment
Public NotInheritable Class WordSegment
// 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)

Properties

AlternateForms AlternateForms AlternateForms AlternateForms AlternateForms

Gets the alternate forms (if any) associated with the current word.

Alternate forms are loosely associated with the current word. An alternate form may encompass less text, more text, or the same text as the original word.

SourceTextSegment SourceTextSegment SourceTextSegment SourceTextSegment SourceTextSegment

Gets the TextSegment that identifies the source text's sub-string that is a word.

Text Text Text Text Text

Gets the text of the word identified by this WordSegment object.