Share via


IMultiSelectionBroker.SelectedSpans Property

Definition

Gets the list of spans within CurrentSnapshot that are selected. While two selections cannot overlap, they may inhabit virtual space, and selections may be adjacent. This will merge those spans and return the minimum set of spans that could be used to describe the selection. This can be a costly operation and should only be run when needed.

public:
 property Microsoft::VisualStudio::Text::NormalizedSnapshotSpanCollection ^ SelectedSpans { Microsoft::VisualStudio::Text::NormalizedSnapshotSpanCollection ^ get(); };
public Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection SelectedSpans { get; }
member this.SelectedSpans : Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection
Public ReadOnly Property SelectedSpans As NormalizedSnapshotSpanCollection

Property Value

Applies to