Share via


UITextView.GetOffsetFromPosition(UITextPosition, UITextPosition) Method

Definition

Gets the number of visible characters between two defined text positions.

[Foundation.Export("offsetFromPosition:toPosition:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual IntPtr GetOffsetFromPosition(UIKit.UITextPosition fromPosition, UIKit.UITextPosition toPosition);
[<Foundation.Export("offsetFromPosition:toPosition:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetOffsetFromPosition : UIKit.UITextPosition * UIKit.UITextPosition -> nativeint
override this.GetOffsetFromPosition : UIKit.UITextPosition * UIKit.UITextPosition -> nativeint

Parameters

fromPosition
UITextPosition

Initial text position.

toPosition
UITextPosition

Ultimate text position.

Returns

IntPtr

nativeint

The number of visible characters between the two specified text positions.

Implements

Attributes

Applies to