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 : IWordSegmentpublic sealed class WordSegment : IWordSegmentPublic NotInheritable Class WordSegment Implements IWordSegment// You can use this class in JavaScript.
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

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 IReadOnlyList<AlternateWordForm> AlternateForms { get; }Public ReadOnly Property AlternateForms As IReadOnlyList<AlternateWordForm>// You can use this property in JavaScript.
Value
IVectorView<AlternateWordForm> IReadOnlyList<AlternateWordForm> IReadOnlyList<AlternateWordForm> IReadOnlyList<AlternateWordForm>

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

SourceTextSegment 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// You can use this property in JavaScript.
Value
TextSegment TextSegment TextSegment TextSegment

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

See Also

Text 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// You can use this property in JavaScript.
Value
PlatForm::String string string string

The current word.