ITextSelection Properties

Include Protected Members
Include Inherited Members

The ITextSelection type exposes the following members.

Properties

  Name Description
Public property ActivationTracksFocus Determines whether IsActive should track when the ITextView gains and loses aggregate focus. The default is true.
Public property ActivePoint Gets the active point of the selection.
Public property AnchorPoint Gets the anchor point of the selection.
Public property End Gets the end point of the selection.
Public property IsActive Whether or not the selection is active.
Public property IsEmpty Determines whether the selection is zero length.
Public property IsReversed Determines whether the active point is Span.Start and the anchor point is Span.End.
Public property Mode Gets or sets the selection mode.
Public property SelectedSpans The currently-selected spans.
Public property Start Gets the start point of the selection.
Public property StreamSelectionSpan Gets the current selection as if it were a stream selection, regardless of the current selection mode.
Public property TextView Gets the text view to which this selection belongs.
Public property VirtualSelectedSpans The currently-selected spans, as VirtualSnapshotSpan objects.

Top

See Also

Reference

ITextSelection Interface

Microsoft.VisualStudio.Text.Editor Namespace