ElementOperations.CanAddCustomFormat Method

Returns a value indicating whether the ModelElement collection can be used to create a custom 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 CanAddCustomFormat ( _
    elements As ICollection(Of ModelElement), _
    closureType As ClosureType _
) As Boolean
protected virtual bool CanAddCustomFormat(
    ICollection<ModelElement> elements,
    ClosureType closureType
)
protected:
virtual bool CanAddCustomFormat(
    ICollection<ModelElement^>^ elements, 
    ClosureType closureType
)
abstract CanAddCustomFormat : 
        elements:ICollection<ModelElement> * 
        closureType:ClosureType -> bool  
override CanAddCustomFormat : 
        elements:ICollection<ModelElement> * 
        closureType:ClosureType -> bool
protected function CanAddCustomFormat(
    elements : ICollection<ModelElement>, 
    closureType : ClosureType
) : boolean

Parameters

  • elements
    Type: ICollection<ModelElement>

    The collection of ModelElements.

Return Value

Type: Boolean
true if the ModelElement collection can be used to create a custom format; otherwise, false.

.NET Framework Security

See Also

Reference

ElementOperations Class

Microsoft.VisualStudio.Modeling Namespace