IUITextInput.GetClosestPositionToPoint IUITextInput.GetClosestPositionToPoint Method

Definition

Overloads

GetClosestPositionToPoint(CGPoint) GetClosestPositionToPoint(CGPoint)

Gets the closest position in a document that exists to a given point.

GetClosestPositionToPoint(CGPoint, UITextRange) GetClosestPositionToPoint(CGPoint, UITextRange)

GetClosestPositionToPoint(CGPoint) GetClosestPositionToPoint(CGPoint)

Gets the closest position in a document that exists to a given point.

[Foundation.Export("closestPositionToPoint:")]
[Foundation.Preserve(Conditional=true)]
public UIKit.UITextPosition GetClosestPositionToPoint (CoreGraphics.CGPoint point);
abstract member GetClosestPositionToPoint : CoreGraphics.CGPoint -> UIKit.UITextPosition

Parameters

point
CGPoint CGPoint

Point in a view where document text is being drawn.

Returns

The closest position to the point.

GetClosestPositionToPoint(CGPoint, UITextRange) GetClosestPositionToPoint(CGPoint, UITextRange)

[Foundation.Export("closestPositionToPoint:withinRange:")]
[Foundation.Preserve(Conditional=true)]
public UIKit.UITextPosition GetClosestPositionToPoint (CoreGraphics.CGPoint point, UIKit.UITextRange withinRange);
abstract member GetClosestPositionToPoint : CoreGraphics.CGPoint * UIKit.UITextRange -> UIKit.UITextPosition

Parameters

withinRange
UITextRange UITextRange

Returns

Applies to