ElementGroup Class

 

Provides a way to collect elements and element links.

Namespace:   Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)

System::Object
  Microsoft.VisualStudio.Modeling::ElementGroup

public ref class ElementGroup 

NameDescription
System_CAPS_pubmethodElementGroup(ModelElement^)

Convenience constructor for constructing a single element group, a common operation

System_CAPS_pubmethodElementGroup(Partition^)

Constructor

System_CAPS_pubmethodElementGroup(Store^)

Constructor

NameDescription
System_CAPS_pubpropertyElementIds

Get a list of the Id's of the elements contained in this group

System_CAPS_pubpropertyElementLinkIds

Get a list of the Id's of the element links contained in this group

System_CAPS_pubpropertyElementLinks

Get the set of element links contained by this group. This does not include the element links contained by child subgroups.

System_CAPS_pubpropertyId

The Id of the group

System_CAPS_pubpropertyModelElements

Get a list of all the elements contained by this element group and all child element groups

System_CAPS_pubpropertyPartition

The Partition the group was created for.

System_CAPS_pubpropertyRootElementIds

Get a list of the Ids of the element links contained in this group

System_CAPS_pubpropertyRootElements

The distinguished element of the group (e.g. the root of a tree, head of a list, etc.)

System_CAPS_pubpropertySourceContext

Returns this ElementGroup's source ElementGroup context object

System_CAPS_pubpropertyTargetContext

Returns this ElementGroup's target ElementGroup context object

System_CAPS_pubpropertyUserData

The user defined serializable data object

NameDescription
System_CAPS_pubmethodAdd(ModelElement^)

Adds an element to the group. Any links to elements already in the group will also be added.

System_CAPS_pubmethodAdd(ModelElement^, Boolean)

Adds an element to the group.

System_CAPS_pubmethodAddGraph(ModelElement^)

Add an element and its children to the group Any links to elements already in the group will also be added.

System_CAPS_pubmethodAddGraph(ModelElement^, Boolean)

Add an element and its children to the group

System_CAPS_pubmethodAddGraph(ModelElement^, Boolean, Boolean)

Add an element and its children to the group

System_CAPS_pubmethodAddRange(IEnumerable<ModelElement^>^)

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

System_CAPS_pubmethodAddRange(IEnumerable<ModelElement^>^, Boolean)

Adds a collection of model elements to the group.

System_CAPS_pubmethodCreatePrototype()

Create a prototype for this element group

System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetElements()

Get the set of elements contained by this group. This does not include the set of elements contained by child subgroups.

System_CAPS_pubmethodGetElements(Guid)

Get the set of element instances of a particular domain class that are contained in this group. This does not include the set of elements contained by child subgroups.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodMarkAsRoot(ModelElement^)

Marks an element in the group as a root element.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticElementGroupIdDictionary

Key used in the TargetContext ElementGroupContext for the Element Id dictionary.

ElementGroup is intended to facilitate serialization of groups of elements from one store to another.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: