NLTokenizer.GetTokenRange Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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