DataObject.GetImage Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Retrieves an image from the data object.

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

public virtual Image GetImage()

Return Value

Type: System.Drawing.Image

An Image representing the image data in the data object or null if the data object does not contain any data that is in the Bitmap format or can be converted to that format.

Use the ContainsImage method to determine whether the data object contains image data before retrieving it with this method.

Use the SetImage method to add image data to the data object.

.NET Framework
Available since 2.0
Return to top
Show: