Back to Devexpress

ThumbnailImageEventArgs.ThumbnailImage Property

windowsforms-devexpress-dot-utils-dot-thumbnailimageeventargs-0840b9df.md

latest3.8 KB
Original Source

ThumbnailImageEventArgs.ThumbnailImage Property

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

Declaration

csharp
public Image ThumbnailImage { get; set; }
vb
Public Property ThumbnailImage As Image

Property Value

TypeDescription
Image

An Image that will be assigned to an item that fired this event.

|

Remarks

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

csharp
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

csharp
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

vb
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

vb
Dim colorName As String = textures(e.DataSourceIndex).Name
    e.ThumbnailImage = GetImage(e.DesiredThumbnailSize, colorName)
End Sub

See Also

BaseGallery.GetThumbnailImage

WinExplorerView.GetThumbnailImage

ThumbnailImageEventArgs Class

ThumbnailImageEventArgs Members

DevExpress.Utils Namespace