編輯

共用方式為


UITextField.GetClosestPositionToPoint Method

Definition

Overloads

GetClosestPositionToPoint(CGPoint)

Returns the position that is closest to the point specified within the control.

GetClosestPositionToPoint(CGPoint, UITextRange)

Gets the UITextPosition closest to , restricted to the range .

GetClosestPositionToPoint(CGPoint)

Returns the position that is closest to the point specified within the control.

[Foundation.Export("closestPositionToPoint:")]
public virtual UIKit.UITextPosition GetClosestPositionToPoint (CoreGraphics.CGPoint point);
abstract member GetClosestPositionToPoint : CoreGraphics.CGPoint -> UIKit.UITextPosition
override this.GetClosestPositionToPoint : CoreGraphics.CGPoint -> UIKit.UITextPosition

Parameters

point
CGPoint

A point within the control.

Returns

Implements

Attributes

Applies to

GetClosestPositionToPoint(CGPoint, UITextRange)

Gets the UITextPosition closest to , restricted to the range .

[Foundation.Export("closestPositionToPoint:withinRange:")]
public virtual UIKit.UITextPosition GetClosestPositionToPoint (CoreGraphics.CGPoint point, UIKit.UITextRange withinRange);
abstract member GetClosestPositionToPoint : CoreGraphics.CGPoint * UIKit.UITextRange -> UIKit.UITextPosition
override this.GetClosestPositionToPoint : CoreGraphics.CGPoint * UIKit.UITextRange -> UIKit.UITextPosition

Parameters

point
CGPoint
withinRange
UITextRange

Returns

Implements

Attributes

Applies to