Skip to main content
SelectableWordsSegmenter.GetTokenAt | getTokenAt method

Determines and returns the selectable word which contains or follows a specified index into the provided text.

Syntax


var selectableWordSegment = selectableWordsSegmenter.getTokenAt(text, startIndex);

public SelectableWordSegment GetTokenAt(
  string text, 
  uint startIndex
)

Public Function GetTokenAt(
  text As String,  
  startIndex As UInteger 
) As SelectableWordSegment

public:
SelectableWordSegment^ GetTokenAt(
  String^ text, 
  unsigned int startIndex
)

Parameters

text

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

Provided text in which a word is to be selected.

startIndex

Type: Number [JavaScript] | System.UInt32 [.NET] | uint32 [C++]

A zero-based index into text. It must be less than the length of text.

Return value

Type: SelectableWordSegment

A SelectableWordSegment that represents the selected word.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0 [for Xbox, see UWP features that aren't yet supported on Xbox]

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Data.Text
Windows::Data::Text [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

None supported

Namespace

Windows.Data.Text
Windows::Data::Text [C++]

Metadata

Windows.winmd

See also

SelectableWordsSegmenter