IUITextInput.GetPosition IUITextInput.GetPosition Method

Definition

Overloads

GetPosition(UITextPosition, UITextLayoutDirection, nint) GetPosition(UITextPosition, UITextLayoutDirection, nint)

Gets the character offset from an initial position.

GetPosition(UITextPosition, nint) GetPosition(UITextPosition, nint)

Gets the character offset from the initial position.

GetPosition(UITextPosition, UITextLayoutDirection, nint) 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 UITextPosition

Initial text position

inDirection
UITextLayoutDirection UITextLayoutDirection

A constant indicating either backward or forward direction for storage.

offset
nint nint

Character offset from the initial position.

Returns

The specified character offset.

Remarks

This can be either a positive or negative value.

GetPosition(UITextPosition, nint) 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 UITextPosition

Initial text position.

offset
nint nint

Character offset from the initial position.

Returns

The specified character offset.

Applies to