Selection.Union(EditingContext, ModelItem) 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.
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.