Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SelectableWordsSegmenter class

Applies to Windows only

A segmenter class that is able to segment provided text into units appropriate for selecting text by words.

The language supplied when this object is constructed is matched against the languages with word breakers on the system, and the best word segmentation rules available are used. The language need not be one of the app's supported languages. If there are no supported language rules available specifically for that language, the language-neutral rules are used (an implementation of Unicode Standard Annex #29 Unicode Text Segmentation), and the ResolvedLanguage property is set to "und" (undetermined language).

Syntax


var selectableWordsSegmenter = new Windows.Data.Text.SelectableWordsSegmenter();

Attributes

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

Members

The SelectableWordsSegmenter class has these types of members:

Constructors

The SelectableWordsSegmenter class has these constructors.

ConstructorDescription
SelectableWordsSegmenter Creates a SelectableWordsSegmenter object.

 

Methods

The SelectableWordsSegmenter class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
GetTokenAt Determines and returns the selectable word which contains or follows a specified index into the provided text.
GetTokens Determines and returns all of the selectable words in the provided text.
Tokenize Calls the provided handler with two iterators that iterate through the selectable words prior to and following a given index into the provided text.

 

Properties

The SelectableWordsSegmenter class has these properties.

PropertyAccess typeDescription

ResolvedLanguage

Read-onlyGets the language of the rules used by this SelectableWordsSegmenter object.

 

Requirements

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

See also

Object

 

 

Show:
© 2014 Microsoft