ElementOperations::AddElementGroupFormat Method (IDataObject^, ICollection<ModelElement^>^, ClosureType, Boolean)

 

Adds the ElementGroupPrototype format to the specified IDataObject using the specified collection of ModelElements. Can be called from derived classes to force demand load of element links in order to create the collection of model elements.

Namespace:   Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)

protected:
void AddElementGroupFormat(
	IDataObject^ data,
	ICollection<ModelElement^>^ elements,
	ClosureType closureType,
	bool bypassDemandLoading
)

Parameters

data
Type: System.Windows.Forms::IDataObject^

The IDataObject to add the ElementGroupPrototype data format to.

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.

bypassDemandLoading
Type: System::Boolean

Whether or not element links should be demand loaded in order to create the collection of model elements.

The data format name is assumed to be typeof(ElementGroupPrototype).FullName.

Return to top
Show: