windowsforms-devexpress-dot-utils-dot-thumbnailimageeventargs-0840b9df.md
Gets or sets the image that will be assigned to an item that fired this event.
Namespace : DevExpress.Utils
Assembly : DevExpress.Utils.v25.2.dll
NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core
public Image ThumbnailImage { get; set; }
Public Property ThumbnailImage As Image
| Type | Description |
|---|---|
| Image |
An Image that will be assigned to an item that fired this event.
|
The ThumbnailImage property is a key property that allows you to assign images to items that support the asynchronous image load feature.
The following code snippets (auto-collected from DevExpress Examples) contain references to the ThumbnailImage property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
office-file-api-create-thumbnail-images-for-docx-xlsx-pdf-files/CS/Form1.cs#L55
int largestEdgeLength = Math.Max(e.DesiredThumbnailSize.Width, e.DesiredThumbnailSize.Height);
e.ThumbnailImage = ImageExporterHelper.GenerateImageFromPDF(filePath, largestEdgeLength);
}
winforms-grid-tileview-thumbnails-async-load/CS/TileView-ManualThumbs/Form1.cs#L37
string colorName = textures[e.DataSourceIndex].Name;
e.ThumbnailImage = GetImage(e.DesiredThumbnailSize, colorName);
}
office-file-api-create-thumbnail-images-for-docx-xlsx-pdf-files/VB/Form1.vb#L45
Dim largestEdgeLength As Integer = Math.Max(e.DesiredThumbnailSize.Width, e.DesiredThumbnailSize.Height)
e.ThumbnailImage = GenerateImageFromPDF(filePath, largestEdgeLength)
Case ".xlsx"
winforms-grid-tileview-thumbnails-async-load/VB/TileView-ManualThumbs/Form1.vb#L34
Dim colorName As String = textures(e.DataSourceIndex).Name
e.ThumbnailImage = GetImage(e.DesiredThumbnailSize, colorName)
End Sub
See Also
WinExplorerView.GetThumbnailImage