Edit

Share via


IUITextInput.GetClosestPositionToPoint Method

Definition

Overloads

GetClosestPositionToPoint(CGPoint)

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

GetClosestPositionToPoint(CGPoint, UITextRange)

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

Point in a view where document text is being drawn.

Returns

The closest position to the point.

Attributes

Applies to

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

point
CGPoint
withinRange
UITextRange

Returns

Attributes

Applies to