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.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.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.IDataObjectThe IDataObject in which to add the image data format.
selectedElements
Type: System.Collections.ICollectionThe 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.