IMultiSelectionBroker.SelectedSpans 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.
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