Skip to main content
A newer version of this page is available. .

GalleryOptionsImageLoad.DesiredThumbnailSize Property

Gets or sets the desired size of thumbnails created by the BaseGallery.GetThumbnailImage event.

Namespace: DevExpress.XtraBars.Ribbon.Gallery

Assembly: DevExpress.XtraBars.v19.1.dll

Declaration

public Size DesiredThumbnailSize { get; set; }

Property Value

Type Description
Size

A Size structure that is the size of thumbnails created by the BaseGallery.GetThumbnailImage event.

Property Paths

You can access this nested property as listed below:

Object Type Path to DesiredThumbnailSize
BaseGallery
.OptionsImageLoad.DesiredThumbnailSize
GalleryControlGallery
.OptionsImageLoad.DesiredThumbnailSize
InDropDownGallery
.OptionsImageLoad.DesiredThumbnailSize
InRibbonGallery
.OptionsImageLoad.DesiredThumbnailSize
StandaloneGallery
.OptionsImageLoad.DesiredThumbnailSize
PopupGalleryEditGallery
.OptionsImageLoad.DesiredThumbnailSize

Remarks

The DesiredThumbnailSize property specifies the desired size of thumbnails produced by the ThumbnailImageEventArgs.CreateThumbnailImage method when handling the BaseGallery.GetThumbnailImage event. You can use this method overload. It takes the Size structure as its second parameter to override the DesiredThumbnailSize setting for an individual thumbnail. See the BaseGallery.GetThumbnailImage topic for details.

Important

The DesiredThumbnailSize property does not explicitly set the thumbnail size. Instead, the thumbnail will zoom in or out depending on this custom size, but it will always keep the original ratio of the source image.

See Also