IUITextInput.GetPosition Method

Definition

Overloads

GetPosition(UITextPosition, UITextLayoutDirection, nint)

Gets the character offset from an initial position.

GetPosition(UITextPosition, nint)

Gets the character offset from the initial position.

GetPosition(UITextPosition, UITextLayoutDirection, nint)

Gets the character offset from an initial position.

[Foundation.Export("positionFromPosition:inDirection:offset:")]
[Foundation.Preserve(Conditional=true)]
public UIKit.UITextPosition GetPosition (UIKit.UITextPosition fromPosition, UIKit.UITextLayoutDirection inDirection, nint offset);
abstract member GetPosition : UIKit.UITextPosition * UIKit.UITextLayoutDirection * nint -> UIKit.UITextPosition

Parameters

fromPosition
UITextPosition

Initial text position

inDirection
UITextLayoutDirection

A constant indicating either backward or forward direction for storage.

offset
nint

Character offset from the initial position.

Returns

The specified character offset.

Attributes

Remarks

This can be either a positive or negative value.

GetPosition(UITextPosition, nint)

Gets the character offset from the initial position.

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

Parameters

fromPosition
UITextPosition

Initial text position.

offset
nint

Character offset from the initial position.

Returns

The specified character offset.

Attributes

Applies to