Partager via


IMultiSelectionBroker.TryRemoveSelection(Selection) Method

Definition

Removes a selection from the view.

public:
 bool TryRemoveSelection(Microsoft::VisualStudio::Text::Selection selection);
public bool TryRemoveSelection (Microsoft.VisualStudio.Text.Selection selection);
abstract member TryRemoveSelection : Microsoft.VisualStudio.Text.Selection -> bool
Public Function TryRemoveSelection (selection As Selection) As Boolean

Parameters

selection
Selection

The selection to remove.

Returns

true if successful. false otherwise. This can fail if either the selection passed in does not exist in the view, or it is the last one.

Applies to