ElementOperations.CanAddCustomFormat 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 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.