UITextView.SelectedTextRange Property

Definition

This property returns the range of text that is selected.

public virtual UIKit.UITextRange SelectedTextRange { [Foundation.Export("selectedTextRange", ObjCRuntime.ArgumentSemantic.Copy)] get; [Foundation.Export("setSelectedTextRange:", ObjCRuntime.ArgumentSemantic.Copy)] set; }
member this.SelectedTextRange : UIKit.UITextRange with get, set

Property Value

Implements

Attributes

Remarks

This property can have three possible values:

  • null: There is no current selection:
  • A zero length UITextRange: This indicates the insertion point:
  • A UITextRange of length > 0:This indicates the currently selected text.:

Applies to