ElementGroup.GetElements 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.
Overloads
GetElements() |
Get the set of elements contained by this group. This does not include the set of elements contained by child subgroups. |
GetElements(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. |
GetElements()
Get the set of elements contained by this group. This does not include the set of elements contained by child subgroups.
public:
System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::VisualStudio::Modeling::ModelElement ^> ^ GetElements();
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Modeling.ModelElement> GetElements ();
member this.GetElements : unit -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Modeling.ModelElement>
Public Function GetElements () As ReadOnlyCollection(Of ModelElement)
Returns
Applies to
GetElements(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.
public:
System::Collections::ObjectModel::Collection<Microsoft::VisualStudio::Modeling::ModelElement ^> ^ GetElements(Guid domainClassId);
public System.Collections.ObjectModel.Collection<Microsoft.VisualStudio.Modeling.ModelElement> GetElements (Guid domainClassId);
member this.GetElements : Guid -> System.Collections.ObjectModel.Collection<Microsoft.VisualStudio.Modeling.ModelElement>
Public Function GetElements (domainClassId As Guid) As Collection(Of ModelElement)
Parameters
- domainClassId
- Guid
The Id of the domain class of the elements we are looking for
Returns
The set of contained elements