ElementOperations.AddCustomFormat Method
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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'Declaração
Protected Overridable Sub AddCustomFormat ( _
data As IDataObject, _
elements As ICollection(Of ModelElement), _
closureType As ClosureType, _
sourcePosition As PointF _
)
protected virtual void AddCustomFormat(
IDataObject data,
ICollection<ModelElement> elements,
ClosureType closureType,
PointF sourcePosition
)
protected:
virtual void AddCustomFormat(
IDataObject^ data,
ICollection<ModelElement^>^ elements,
ClosureType closureType,
PointF sourcePosition
)
abstract AddCustomFormat :
data:IDataObject *
elements:ICollection<ModelElement> *
closureType:ClosureType *
sourcePosition:PointF -> unit
override AddCustomFormat :
data:IDataObject *
elements:ICollection<ModelElement> *
closureType:ClosureType *
sourcePosition:PointF -> unit
protected function AddCustomFormat(
data : IDataObject,
elements : ICollection<ModelElement>,
closureType : ClosureType,
sourcePosition : PointF
)
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
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.