Share via


UITextView.GetCharacterOffsetOfPosition(UITextPosition, UITextRange) Method

Definition

Calculates and returns the offset into range of the character that is in position in the document.

[Foundation.Export("characterOffsetOfPosition:withinRange:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual IntPtr GetCharacterOffsetOfPosition(UIKit.UITextPosition position, UIKit.UITextRange range);
[<Foundation.Export("characterOffsetOfPosition:withinRange:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetCharacterOffsetOfPosition : UIKit.UITextPosition * UIKit.UITextRange -> nativeint
override this.GetCharacterOffsetOfPosition : UIKit.UITextPosition * UIKit.UITextRange -> nativeint

Parameters

position
UITextPosition
range
UITextRange

Returns

IntPtr

nativeint

Implements

Attributes

Applies to