DataObject.ContainsImage Method ()

 

Indicates whether the data object contains data that is in the Bitmap format or can be converted to that format.

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

public virtual bool ContainsImage()

Return Value

Type: System.Boolean

true if the data object contains image data; otherwise, false.

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

.NET Framework
Available since 2.0
Return to top
Show: