Freigeben über


ElementOperations.CanAddCustomFormat Method

Definition

Returns a value indicating whether the ModelElement collection can be used to create a custom format.

protected:
 virtual bool CanAddCustomFormat(System::Collections::Generic::ICollection<Microsoft::VisualStudio::Modeling::ModelElement ^> ^ elements, Microsoft::VisualStudio::Modeling::ClosureType closureType);
protected virtual bool CanAddCustomFormat (System.Collections.Generic.ICollection<Microsoft.VisualStudio.Modeling.ModelElement> elements, Microsoft.VisualStudio.Modeling.ClosureType closureType);
abstract member CanAddCustomFormat : System.Collections.Generic.ICollection<Microsoft.VisualStudio.Modeling.ModelElement> * Microsoft.VisualStudio.Modeling.ClosureType -> bool
override this.CanAddCustomFormat : System.Collections.Generic.ICollection<Microsoft.VisualStudio.Modeling.ModelElement> * Microsoft.VisualStudio.Modeling.ClosureType -> bool
Protected Overridable Function CanAddCustomFormat (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 a custom format; otherwise, false.

Applies to