ElementOperations::AddCustomFormat Method (IDataObject^, ICollection<ModelElement^>^, ClosureType, PointF)

 

Adds one or more custom data formats to the specified IDataObject using the specified collection of ModelElements.

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

protected:
virtual void AddCustomFormat(
	IDataObject^ data,
	ICollection<ModelElement^>^ elements,
	ClosureType closureType,
	PointF sourcePosition
)

Parameters

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

The IDataObject to add the custom data formats 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.

sourcePosition
Type: System.Drawing::PointF

The positions of the ModelElements in the source

Return to top
Show: