ElementOperations.CanAddElementGroupFormat Method
Returns a value indicating whether the ModelElement collection can be used to create an ElementGroupPrototype format.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)
Syntax
'Declaration
Protected Overridable Function CanAddElementGroupFormat ( _
elements As ICollection(Of ModelElement), _
closureType As ClosureType _
) As Boolean
protected virtual bool CanAddElementGroupFormat(
ICollection<ModelElement> elements,
ClosureType closureType
)
protected:
virtual bool CanAddElementGroupFormat(
ICollection<ModelElement^>^ elements,
ClosureType closureType
)
abstract CanAddElementGroupFormat :
elements:ICollection<ModelElement> *
closureType:ClosureType -> bool
override CanAddElementGroupFormat :
elements:ICollection<ModelElement> *
closureType:ClosureType -> bool
protected function CanAddElementGroupFormat(
elements : ICollection<ModelElement>,
closureType : ClosureType
) : boolean
Parameters
elements
Type: ICollection<ModelElement>The collection of ModelElements.
closureType
Type: Microsoft.VisualStudio.Modeling.ClosureTypeThe type of closure to use to filter the elements.
Return Value
Type: Boolean
true if the ModelElement collection can be used to create an ElementGroupPrototype format; otherwise, false.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.