IMultiSelectionBroker.SetSelection(Selection) 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 and adds one as the new value. This also becomes the PrimarySelection.
public:
void SetSelection(Microsoft::VisualStudio::Text::Selection selection);
public void SetSelection (Microsoft.VisualStudio.Text.Selection selection);
abstract member SetSelection : Microsoft.VisualStudio.Text.Selection -> unit
Public Sub SetSelection (selection As Selection)
Parameters
- selection
- Selection
The selection to leave as the value of PrimarySelection and sole member of AllSelections.
Remarks
This will throw if it not based on CurrentSnapshot.