DataObject.ContainsImage Method ()


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

Queries a data object for the presence of data in the Bitmap data format.

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

public bool ContainsImage()

Return Value

Type: System.Boolean

true if the data object contains data in the Bitmap data format; otherwise, false.

This method returns true only if the specified data format exists natively in the data object; this method does not check for the presence of auto-convertible data formats.

A bitmap represents a computer graphic as an array of bits in memory, and these bits represent the attributes of the individual pixels in an image.

.NET Framework
Available since 3.0
Return to top