Share via


IUITextInput.GetCaretRectForPosition(UITextPosition) Method

Definition

A rectangle used for drawing a caret at a given insertion point.

[Foundation.Export("caretRectForPosition:")]
[Foundation.RequiredMember]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual CoreGraphics.CGRect GetCaretRectForPosition(UIKit.UITextPosition? position);
[<Foundation.Export("caretRectForPosition:")>]
[<Foundation.RequiredMember>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetCaretRectForPosition : UIKit.UITextPosition -> CoreGraphics.CGRect
override this.GetCaretRectForPosition : UIKit.UITextPosition -> CoreGraphics.CGRect

Parameters

position
UITextPosition

A positioning object that indicates a specified ___location.

Returns

A rectangle defining an area for drawing a caret.

Attributes

Applies to