A segmenter class that is able to segment provided text into 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 wordsSegmenter = new Windows.Data.Text.WordsSegmenter();
public sealed class WordsSegmenter
Public NotInheritable Class WordsSegmenter
public ref class WordsSegmenter sealed
- [ DualApiPartition()]
- [ MarshalingBehavior(Agile)]
- [ Threading(Both)]
- [ Version(0x06030000)]
The WordsSegmenter class has these types of members:
The WordsSegmenter class has these constructors.
|WordsSegmenter||Creates a WordsSegmenter object.|
The WordsSegmenter class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.
|GetTokenAt||Determines and returns the word which contains or follows a specified index into the provided text.|
|GetTokens||Determines and returns all of the words in the provided text.|
|Tokenize||Calls the provided handler with two iterators that iterate through the words prior to and following a given index into the provided text.|
The WordsSegmenter class has these properties.
|Read-only||Gets the language of the rules used by this WordsSegmenter 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