windowsforms-devexpress-dot-utils-dot-thumbnailimageeventargs-8f45620e.md
Stores the desired size of thumbnail images, generated using the ThumbnailImageEventArgs.CreateThumbnailImage method.
Namespace : DevExpress.Utils
Assembly : DevExpress.Utils.v25.2.dll
NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core
public Size DesiredThumbnailSize { get; }
Public ReadOnly Property DesiredThumbnailSize As Size
| Type | Description |
|---|---|
| Size |
A Size structure that is the desired size of thumbnail images, generated using the ThumbnailImageEventArgs.CreateThumbnailImage method.
|
The DesiredThumbnailSize property stores the desired thumbnail image size. To set this size, use the GalleryOptionsImageLoad.DesiredThumbnailSize or WinExplorerViewOptionsImageLoad.DesiredThumbnailSize properties. See these links to learn more.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DesiredThumbnailSize 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.
winforms-grid-tileview-thumbnails-async-load/CS/TileView-ManualThumbs/Form1.cs#L37
string colorName = textures[e.DataSourceIndex].Name;
e.ThumbnailImage = GetImage(e.DesiredThumbnailSize, colorName);
}
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
GalleryOptionsImageLoad.DesiredThumbnailSize
WinExplorerViewOptionsImageLoad.DesiredThumbnailSize