IMultiSelectionBroker.SetSelectionRange Method
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.
Clears the current selections, adds the provided range, and sets the primary selection.
public:
void SetSelectionRange(System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Text::Selection> ^ range, Microsoft::VisualStudio::Text::Selection primary);
public void SetSelectionRange (System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Text.Selection> range, Microsoft.VisualStudio.Text.Selection primary);
abstract member SetSelectionRange : seq<Microsoft.VisualStudio.Text.Selection> * Microsoft.VisualStudio.Text.Selection -> unit
Public Sub SetSelectionRange (range As IEnumerable(Of Selection), primary As Selection)
Parameters
- range
- IEnumerable<Selection>
Selections that should be part of AllSelections.
- primary
- Selection
The selection that should be set as PrimarySelection.
Remarks
If range is null or does not contain primary, primary will also be added to AllSelections. This will throw if any of the selections are not based on CurrentSnapshot.