ElementOperations.CanAddElementGroupFormat 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.
Returns a value indicating whether the ModelElement collection can be used to create an ElementGroupPrototype format.
protected:
virtual bool CanAddElementGroupFormat(System::Collections::Generic::ICollection<Microsoft::VisualStudio::Modeling::ModelElement ^> ^ elements, Microsoft::VisualStudio::Modeling::ClosureType closureType);
protected virtual bool CanAddElementGroupFormat (System.Collections.Generic.ICollection<Microsoft.VisualStudio.Modeling.ModelElement> elements, Microsoft.VisualStudio.Modeling.ClosureType closureType);
abstract member CanAddElementGroupFormat : System.Collections.Generic.ICollection<Microsoft.VisualStudio.Modeling.ModelElement> * Microsoft.VisualStudio.Modeling.ClosureType -> bool
override this.CanAddElementGroupFormat : System.Collections.Generic.ICollection<Microsoft.VisualStudio.Modeling.ModelElement> * Microsoft.VisualStudio.Modeling.ClosureType -> bool
Protected Overridable Function CanAddElementGroupFormat (elements As ICollection(Of ModelElement), closureType As ClosureType) As Boolean
Parameters
- elements
- ICollection<ModelElement>
The collection of ModelElements.
- closureType
- ClosureType
The type of closure to use to filter the elements.
Returns
true if the ModelElement collection can be used to create an ElementGroupPrototype format; otherwise, false.