Redigera

Dela via


Selection.Union(EditingContext, ModelItem) Method

Definition

A selection helper method that takes the existing selection in the context and creates a new selection that contains the original selection and the specified item to add. If the specified item to add is already in the original selection, it is promoted to the primary selection.

public:
 static System::Activities::Presentation::View::Selection ^ Union(System::Activities::Presentation::EditingContext ^ context, System::Activities::Presentation::Model::ModelItem ^ itemToAdd);
public static System.Activities.Presentation.View.Selection Union (System.Activities.Presentation.EditingContext context, System.Activities.Presentation.Model.ModelItem itemToAdd);
static member Union : System.Activities.Presentation.EditingContext * System.Activities.Presentation.Model.ModelItem -> System.Activities.Presentation.View.Selection
Public Shared Function Union (context As EditingContext, itemToAdd As ModelItem) As Selection

Parameters

context
EditingContext

The editing context to apply this selection change to.

itemToAdd
ModelItem

The item to add to the selection.

Returns

A Selection object that contains the new selection.

Applies to