Edit

Share via


IUITextInput.GetOffsetFromPosition(UITextPosition, UITextPosition) Method

Definition

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

[Foundation.Export("offsetFromPosition:toPosition:")]
[Foundation.Preserve(Conditional=true)]
public nint GetOffsetFromPosition (UIKit.UITextPosition fromPosition, UIKit.UITextPosition toPosition);
abstract member GetOffsetFromPosition : UIKit.UITextPosition * UIKit.UITextPosition -> nint

Parameters

fromPosition
UITextPosition

Initial text position.

toPosition
UITextPosition

Ultimate text position.

Returns

System.System.IntPtr System.nativeint

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

Attributes

Applies to