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.v22.1.Core.dll


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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ImageSizeMode enum.


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.

See Also