Partager via


ElementGroup.AddRange Method

Definition

Overloads

AddRange(IEnumerable<ModelElement>)

Adds a collection of model elements to the group. Any links to elements already in the group will also be added.

AddRange(IEnumerable<ModelElement>, Boolean)

Adds a collection of model elements to the group.

AddRange(IEnumerable<ModelElement>)

Adds a collection of model elements to the group. Any links to elements already in the group will also be added.

public:
 void AddRange(System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Modeling::ModelElement ^> ^ modelElements);
public void AddRange (System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Modeling.ModelElement> modelElements);
member this.AddRange : seq<Microsoft.VisualStudio.Modeling.ModelElement> -> unit
Public Sub AddRange (modelElements As IEnumerable(Of ModelElement))

Parameters

modelElements
IEnumerable<ModelElement>

Applies to

AddRange(IEnumerable<ModelElement>, Boolean)

Adds a collection of model elements to the group.

public:
 void AddRange(System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Modeling::ModelElement ^> ^ modelElements, bool includeLinksAutomatically);
public void AddRange (System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Modeling.ModelElement> modelElements, bool includeLinksAutomatically);
member this.AddRange : seq<Microsoft.VisualStudio.Modeling.ModelElement> * bool -> unit
Public Sub AddRange (modelElements As IEnumerable(Of ModelElement), includeLinksAutomatically As Boolean)

Parameters

modelElements
IEnumerable<ModelElement>

Collection of elements to be added to the group.

includeLinksAutomatically
Boolean

Flag to indicate whether to include links to elements already in the group should also be added

Applies to