Diagram.AddImageFormat Method
Adds the format of the diagram image to IDataObject, which is responsible for transferring data.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'Declaration
Public Overridable Sub AddImageFormat ( _
data As IDataObject, _
selectedElements As ICollection _
)
public virtual void AddImageFormat(
IDataObject data,
ICollection selectedElements
)
public:
virtual void AddImageFormat(
IDataObject^ data,
ICollection^ selectedElements
)
abstract AddImageFormat :
data:IDataObject *
selectedElements:ICollection -> unit
override AddImageFormat :
data:IDataObject *
selectedElements:ICollection -> unit
public function AddImageFormat(
data : IDataObject,
selectedElements : ICollection
)
Parameters
- data
Type: System.Windows.Forms.IDataObject
The IDataObject in which to add the image data format.
- selectedElements
Type: System.Collections.ICollection
The collection of model elements to include in the diagram image.
.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.