Share via


NLTokenizer.GetTokenRange Method

Definition

Overloads

Name Description
GetTokenRange(NSRange)
GetTokenRange(UIntPtr)

Gets the range of the token that covers the specified character index.

GetTokenRange(NSRange)

[Foundation.Export("tokenRangeForRange:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual Foundation.NSRange GetTokenRange(Foundation.NSRange range);
[<Foundation.Export("tokenRangeForRange:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetTokenRange : Foundation.NSRange -> Foundation.NSRange
override this.GetTokenRange : Foundation.NSRange -> Foundation.NSRange

Parameters

range
NSRange

Returns

Attributes

Applies to

GetTokenRange(UIntPtr)

Gets the range of the token that covers the specified character index.

[Foundation.Export("tokenRangeAtIndex:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual Foundation.NSRange GetTokenRange(UIntPtr characterIndex);
[<Foundation.Export("tokenRangeAtIndex:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetTokenRange : unativeint -> Foundation.NSRange
override this.GetTokenRange : unativeint -> Foundation.NSRange

Parameters

characterIndex
UIntPtr

unativeint

The index of a character that is covered by a token.

Returns

The range of the token that covers the specified character index.

Attributes

Applies to