System.Windows.Forms.DataObject.SetImage Method

Adds an System.Drawing.Image to the data object in the DataFormats.Bitmap format.

Syntax

public virtual void SetImage (System.Drawing.Image image)

Parameters

image
The System.Drawing.Image to add to the data object.

Remarks

To retrieve image data from the data object, first use the DataObject.ContainsImage method to determine whether the data object contains image data before retrieving it with the DataObject.GetImage method.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0