IMultiSelectionBroker.TryPerformActionOnSelection 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.
Overloads
TryPerformActionOnSelection(Selection, PredefinedSelectionTransformations, Selection) |
Attempts to perform a predefined action on a single Selection. |
TryPerformActionOnSelection(Selection, Action<ISelectionTransformer>, Selection) |
Attempts to perform a custom action on a single Selection. |
TryPerformActionOnSelection(Selection, PredefinedSelectionTransformations, Selection)
Attempts to perform a predefined action on a single Selection.
public:
bool TryPerformActionOnSelection(Microsoft::VisualStudio::Text::Selection before, Microsoft::VisualStudio::Text::PredefinedSelectionTransformations action, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Text::Selection % after);
public bool TryPerformActionOnSelection (Microsoft.VisualStudio.Text.Selection before, Microsoft.VisualStudio.Text.PredefinedSelectionTransformations action, out Microsoft.VisualStudio.Text.Selection after);
abstract member TryPerformActionOnSelection : Microsoft.VisualStudio.Text.Selection * Microsoft.VisualStudio.Text.PredefinedSelectionTransformations * Selection -> bool
Public Function TryPerformActionOnSelection (before As Selection, action As PredefinedSelectionTransformations, ByRef after As Selection) As Boolean
Parameters
- before
- Selection
The selection on which to perform the manipulation
The manipulation to perform.
- after
- Selection
Overlapping selections will be merged after the manipulation has been performed. This parameter reports back the Selection post manipulation and post merge.
Returns
true
if the manipulation was performed. false
otherwise. Typically, false
implies that the
before Selection did not exist in AllSelections.
Applies to
TryPerformActionOnSelection(Selection, Action<ISelectionTransformer>, Selection)
Attempts to perform a custom action on a single Selection.
public:
bool TryPerformActionOnSelection(Microsoft::VisualStudio::Text::Selection before, Action<Microsoft::VisualStudio::Text::ISelectionTransformer ^> ^ action, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Text::Selection % after);
public bool TryPerformActionOnSelection (Microsoft.VisualStudio.Text.Selection before, Action<Microsoft.VisualStudio.Text.ISelectionTransformer> action, out Microsoft.VisualStudio.Text.Selection after);
abstract member TryPerformActionOnSelection : Microsoft.VisualStudio.Text.Selection * Action<Microsoft.VisualStudio.Text.ISelectionTransformer> * Selection -> bool
Public Function TryPerformActionOnSelection (before As Selection, action As Action(Of ISelectionTransformer), ByRef after As Selection) As Boolean
Parameters
- before
- Selection
The selection on which to perform the action.
- action
- Action<ISelectionTransformer>
The action to perform.
- after
- Selection
Overlapping selections will be merged after the action has been performed. This parameter reports back the Selection post action and post merge.
Returns
true
if the action was performed. false
otherwise. Typically, false
implies that the
beforeSelection did not exist in AllSelections.