ElementOperations::CanAddCustomFormat Method (ICollection<ModelElement^>^, ClosureType)

 

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.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)

protected:
virtual bool CanAddCustomFormat(
	ICollection<ModelElement^>^ elements,
	ClosureType closureType
)

Parameters

elements
Type: System.Collections.Generic::ICollection<ModelElement^>^

The collection of ModelElements.

closureType
Type: Microsoft.VisualStudio.Modeling::ClosureType

The type of closure to use to filter the elements.

Return Value

Type: System::Boolean

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

Return to top
Show: