Freigeben über


IMultiSelectionBroker.TrySetAsPrimarySelection(Selection) Method

Definition

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.

Applies to