UITextView.GetCharacterOffsetOfPosition(UITextPosition, UITextRange) Method

Definition

Returns the number of characters in some text between position and the start of the range.

[Foundation.Export("characterOffsetOfPosition:withinRange:")]
public virtual nint GetCharacterOffsetOfPosition (UIKit.UITextPosition position, UIKit.UITextRange range);
abstract member GetCharacterOffsetOfPosition : UIKit.UITextPosition * UIKit.UITextRange -> nint
override this.GetCharacterOffsetOfPosition : UIKit.UITextPosition * UIKit.UITextRange -> nint

Parameters

position
UITextPosition

A location in the text.

range
UITextRange

The range of text in a document.

Returns

System.System.IntPtr System.nativeint
Attributes

Applies to