Share via


IUITextInput.GetPositionWithinRange Method

Definition

Gets a position within a specified range.

[Foundation.Export("positionWithinRange:farthestInDirection:")]
[Foundation.RequiredMember]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual UIKit.UITextPosition GetPositionWithinRange(UIKit.UITextRange range, UIKit.UITextLayoutDirection direction);
[<Foundation.Export("positionWithinRange:farthestInDirection:")>]
[<Foundation.RequiredMember>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetPositionWithinRange : UIKit.UITextRange * UIKit.UITextLayoutDirection -> UIKit.UITextPosition
override this.GetPositionWithinRange : UIKit.UITextRange * UIKit.UITextLayoutDirection -> UIKit.UITextPosition

Parameters

range
UITextRange

A UITextRange object indicating the range of a document's text.

direction
UITextLayoutDirection

A constant indicating direction for storage.

Returns

A position within a specified range.

Attributes

Applies to