UIKit.UITextView.SelectedRange Property
This property returns the range of text that is selected.

Syntax

[get: Foundation.Export("selectedRange")]
[set: Foundation.Export("setSelectedRange:")]
public virtual Foundation.NSRange SelectedRange { get; set; }

See Also

UITextView.ClearsOnInsertion
UITextView.ScrollRangeToVisible
UITextView.Selectable

Value

Remarks

This property can have three possible values:

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

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0