System.Windows.Forms.DataObject.ContainsImage Method

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

Syntax

public virtual bool ContainsImage ()

Returns

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

Remarks

Use this 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