Skip to main content

ImageSizeMode Enum

Lists values that specify how an image is positioned within an ImageDashboardItem or BoundImageDashboardItem.

Namespace: DevExpress.DashboardCommon

Assembly: DevExpress.Dashboard.v23.1.Core.dll

NuGet Packages: DevExpress.Dashboard.Core, DevExpress.Win.Dashboard.Design


public enum ImageSizeMode


Name Description

The image is placed in the upper-left corner of the ImageDashboardItem. The image is clipped if it is larger than the ImageDashboardItem which contains it.


The image within the ImageDashboardItem is stretched or shrunk as appropriate to fit the size of the ImageDashboardItem.


The image is sized proportionally (without clipping), so that it best fits the ImageDashboardItem. If the ratio of height to width of the ImageDashboardItem is the same as the image’s ratio, it will be resized to exactly fit into the ImageDashboardItem. Otherwise, the closest fitting side (height or width) of the image will be sized to the dashboard item and the other side (height or width) of the image is sized proportionally (leaving empty space).


If the ImageDashboardItem‘s dimensions exceed that of the image it contains, the image is centered and shown full-size. Otherwise, the image is resized to fit into the ImageDashboardItem‘s dimensions.


Values listed by this enumeration are used to set the ImageDashboardItem.SizeMode property.

See Also