SelectableWordSegment
SelectableWordSegment
SelectableWordSegment
SelectableWordSegment
Class
Definition
Represents a segment from your provided text that includes a word and any trailing whitespace and/or punctuation after this word.
public : sealed class SelectableWordSegment : ISelectableWordSegmentpublic sealed class SelectableWordSegment : ISelectableWordSegmentPublic NotInheritable Class SelectableWordSegment Implements ISelectableWordSegment// 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)
|
Remarks
Your code does not instantiate this class directly. Instead, you use instances retrieved from a SelectableWordsSegmenter object.
Properties
SourceTextSegment SourceTextSegment SourceTextSegment SourceTextSegment
Gets the TextSegment that identifies the source text's sub-string that is the selected word.
public : TextSegment SourceTextSegment { get; }public TextSegment SourceTextSegment { get; }Public ReadOnly Property SourceTextSegment As TextSegment// You can use this property in JavaScript.
The TextSegment structure that identifies the word in your provided text.
- See Also
Text Text Text Text
Gets the text of the selected word identified by this SelectableWordSegment 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 selected word.