편집

다음을 통해 공유


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
System.System.IntPtr System.nativeint

Character offset from the initial position.

Returns

The specified character offset.

Attributes

Remarks

This can be either a positive or negative value.

Applies to

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
System.System.IntPtr System.nativeint

Character offset from the initial position.

Returns

The specified character offset.

Attributes

Applies to