UITextView.SelectedRange Property
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.
This property returns the range of text that is selected.
public virtual Foundation.NSRange SelectedRange { [Foundation.Export("selectedRange")] get; [Foundation.Export("setSelectedRange:")] set; }
member this.SelectedRange : Foundation.NSRange with get, set
Property Value
- 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
See also
- ClearsOnInsertion
- <xref:UIKit.UITextView.ScrollRangeToVisible>
- Selectable