Ανάγνωση στα Αγγλικά

Κοινή χρήση μέσω


IMultiSelectionBroker.PerformActionOnAllSelections Method

Definition

Overloads

PerformActionOnAllSelections(Action<ISelectionTransformer>)

Performs a custom action on all Selections contained by TextView.

PerformActionOnAllSelections(PredefinedSelectionTransformations)

Performs a predefined manipulation on all Selections contained by TextView.

PerformActionOnAllSelections(Action<ISelectionTransformer>)

Performs a custom action on all Selections contained by TextView.

C++
public:
 void PerformActionOnAllSelections(Action<Microsoft::VisualStudio::Text::ISelectionTransformer ^> ^ action);

Parameters

action
Action<ISelectionTransformer>

The action to perform. This will be called once per Selection and the supplied ISelectionTransformer contains methods to adjust an individual Selection.

Remarks

Overlapping selections will be merged after all actions have been performed.

Applies to

Visual Studio SDK 2022 και άλλες εκδόσεις
Προϊόν Εκδόσεις
Visual Studio SDK 2017, 2019, 2022

PerformActionOnAllSelections(PredefinedSelectionTransformations)

Performs a predefined manipulation on all Selections contained by TextView.

C++
public:
 void PerformActionOnAllSelections(Microsoft::VisualStudio::Text::PredefinedSelectionTransformations action);

Parameters

action
PredefinedSelectionTransformations

The manipulation to perform.

Remarks

Overlapping selections will be merged after all manipulations have been applied.

Applies to

Visual Studio SDK 2022 και άλλες εκδόσεις
Προϊόν Εκδόσεις
Visual Studio SDK 2017, 2019, 2022