TextSegment
TextSegment
TextSegment
TextSegment
Struct
Definition
Identifies a sub-string of a source text string. Your app can use this structure to obtain the segment of your provided text that is identified by AlternateWordForm, SelectableWordSegment, WordSegment, or SemanticTextQuery.
public : struct TextSegmentpublic struct TextSegmentPublic Structure TextSegment// You can use this struct 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)
|
Fields
Length Length Length Length
The number of characters in the associated text segment.
public : field unsigned int Lengthpublic field uint LengthPublic Field Length// You can use this field in JavaScript.
Additional features and requirements
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
StartPosition StartPosition StartPosition StartPosition
The zero-based index of the start of the associated text segment.
public : field unsigned int StartPositionpublic field uint StartPositionPublic Field StartPosition// You can use this field in JavaScript.
Additional features and requirements
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|