共用方式為


ElementOperations.CanAddElementGroupFormat Method

Definition

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.

Applies to