Share via


IUITextInput.SelectedTextRange Property

Definition

The range of a document's selected text.

[Foundation.RequiredMember]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual UIKit.UITextRange? SelectedTextRange { [Foundation.Export("selectedTextRange")] get; [Foundation.Export("setSelectedTextRange:")] set; }
[<Foundation.RequiredMember>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
[<get: Foundation.Export("selectedTextRange")>]
[<set: Foundation.Export("setSelectedTextRange:")>]
member this.SelectedTextRange : UIKit.UITextRange with get, set

Property Value

If there is no current specified selection, then it is set to null.

Attributes

Remarks

If the specified range has length, it specifies currently selected text; if zero length, it specifies only the caret at the insertion point.

Applies to