property Thumbnail.Thumbnail as IPictureDisp
Retrieves the thumbnail view of the file.

TypeDescription
IPictureDisp A Picture object that holds the BMP or ICO representation of the thumbnail.
Use the Thumbnail property to access the thumbnail picture. Use the InputFile property to specify the file whose thumbnail is retrieved. Use the ThumbnailType property to specify whether the thumbnail is a bitmap or an icon. For instance, if you set the ThumbnailType property on exThumbnailIcon, and calling the InputFile property, the control gets the icon representation of the file. If the ThumbnailType property on exThumbnailIcon is exThumbnailBitmap the control tries to get a bitmap representation of the file if it is available, else the Thumbnail property is nothing, and the ThumbnailType property is exNoThumbnail. Use the OutputFile property to save the thumbnail picture. The Bitmap property always returns a BITMAP object that shows the file's thumbnail.

Let's say that we drop the floppy.png file to the component, and based on the ThumbnailType property the component generates the following views:

  1. exThumbnailPicture (The thumbnail type is a bitmap, but the original file is a picture being loaded directly)

  2. exThumbnailBitmap (The thumbnail type is a bitmap)

  3. exThumbnailIcon (The thumbnail type is an icon.)