IMultiSelectionBroker.TrySetAsPrimarySelection(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.
Attempts to set the provided selection to be the new PrimarySelection.
public:
bool TrySetAsPrimarySelection(Microsoft::VisualStudio::Text::Selection candidate);
public bool TrySetAsPrimarySelection (Microsoft.VisualStudio.Text.Selection candidate);
abstract member TrySetAsPrimarySelection : Microsoft.VisualStudio.Text.Selection -> bool
Public Function TrySetAsPrimarySelection (candidate As Selection) As Boolean
Parameters
- candidate
- Selection
The new candidate for primary selection.
Returns
Whether the set operation was successful. This will return false
if the candidate is not
found in AllSelections.