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).
var selectableWordsSegmenter = new Windows.Data.Text.SelectableWordsSegmenter();
public sealed class SelectableWordsSegmenter
Public NotInheritable Class SelectableWordsSegmenter
public ref class SelectableWordsSegmenter sealed
- [ DualApiPartition()]
- [ MarshalingBehavior(Agile)]
- [ Threading(Both)]
- [ Version(0x06030000)]
The SelectableWordsSegmenter class has these types of members:
The SelectableWordsSegmenter class has these constructors.
|SelectableWordsSegmenter||Creates a SelectableWordsSegmenter object.|
The SelectableWordsSegmenter class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.
|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.|
The SelectableWordsSegmenter class has these properties.
|Read-only||Gets the language of the rules used by this SelectableWordsSegmenter object.|
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