Word​Segment Word​Segment Word​Segment 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 : IWordSegmentpublic sealed class WordSegment : IWordSegmentPublic NotInheritable Class WordSegment Implements IWordSegment
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

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.

public IVectorView<AlternateWordForm> AlternateForms { get; }public IVectorView<AlternateWordForm> AlternateForms { get; }Public ReadOnly Property AlternateForms As IVectorView<AlternateWordForm>
Value

A collection of AlternateWordForm objects that represent alternate forms of the current word.

Attributes

SourceTextSegment SourceTextSegment SourceTextSegment

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

public TextSegment SourceTextSegment { get; }public TextSegment SourceTextSegment { get; }Public ReadOnly Property SourceTextSegment As TextSegment
Value
TextSegment TextSegment TextSegment

The TextSegment structure that identifies the word in your provided text.

Attributes

Text Text Text

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

public PlatForm::String Text { get; }public string Text { get; }Public ReadOnly Property Text As string
Value
string string string

The current word.

Attributes