IUITextInput.GetOffsetFromPosition(UITextPosition, UITextPosition) 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 UITextPosition

Initial text position.

toPosition
UITextPosition UITextPosition

Ultimate text position.

Returns

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

Applies to