Skip to main content
WordSegment class

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.

Syntax


var wordSegment = WordsSegmenter.GetTokenAt();

public sealed class WordSegment

Public NotInheritable Class WordSegment

public ref class WordSegment sealed 

Members

The WordSegment class has these types of members:

Properties

The WordSegment class has these properties.

PropertyAccess typeDescription

AlternateForms

Read-only

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

SourceTextSegment

Read-only

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

Text

Read-only

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

 

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0 [for Xbox, see UWP features that aren't yet supported on Xbox]

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Data.Text
Windows::Data::Text [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8.1 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps, desktop apps]

Minimum supported phone

None supported

Namespace

Windows.Data.Text
Windows::Data::Text [C++]

Metadata

Windows.winmd

Attributes

[ DualApiPartition()]
[ MarshalingBehavior(Agile)]
[ Threading(Both)]
[ Version(0x06030000)]

See also

Object