IUITextInput.GetClosestPositionToPoint Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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