Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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)
Syntax
'Declaration
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.IDataObjectThe IDataObject to add the custom data formats to.
elements
Type: System.Collections.Generic.ICollection<ModelElement>The collection of ModelElements.
closureType
Type: Microsoft.VisualStudio.Modeling.ClosureTypeThe type of closure to use to filter the elements.
sourcePosition
Type: System.Drawing.PointFThe 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.