다음을 통해 공유


ElementOperations.AddCustomFormat Method

Definition

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

protected:
 virtual void AddCustomFormat(System::Windows::Forms::IDataObject ^ data, System::Collections::Generic::ICollection<Microsoft::VisualStudio::Modeling::ModelElement ^> ^ elements, Microsoft::VisualStudio::Modeling::ClosureType closureType, System::Drawing::PointF sourcePosition);
protected virtual void AddCustomFormat (System.Windows.Forms.IDataObject data, System.Collections.Generic.ICollection<Microsoft.VisualStudio.Modeling.ModelElement> elements, Microsoft.VisualStudio.Modeling.ClosureType closureType, System.Drawing.PointF sourcePosition);
abstract member AddCustomFormat : System.Windows.Forms.IDataObject * System.Collections.Generic.ICollection<Microsoft.VisualStudio.Modeling.ModelElement> * Microsoft.VisualStudio.Modeling.ClosureType * System.Drawing.PointF -> unit
override this.AddCustomFormat : System.Windows.Forms.IDataObject * System.Collections.Generic.ICollection<Microsoft.VisualStudio.Modeling.ModelElement> * Microsoft.VisualStudio.Modeling.ClosureType * System.Drawing.PointF -> unit
Protected Overridable Sub AddCustomFormat (data As IDataObject, elements As ICollection(Of ModelElement), closureType As ClosureType, sourcePosition As PointF)

Parameters

data
IDataObject

The IDataObject to add the custom data formats to.

elements
ICollection<ModelElement>

The collection of ModelElements.

closureType
ClosureType

The type of closure to use to filter the elements.

sourcePosition
PointF

The positions of the ModelElements in the source

Applies to