BoundImageDashboardItem.SizeMode Property
Namespace: DevExpress.DashboardCommon
Assembly:
DevExpress.Dashboard.v24.1.Core.dll
NuGet Package:
DevExpress.Dashboard.Core
Declaration
[DefaultValue(ImageSizeMode.Clip)]
public ImageSizeMode SizeMode { get; set; }
<DefaultValue(ImageSizeMode.Clip)>
Public Property SizeMode As ImageSizeMode
Property Value
Available values:
Name |
Description |
Clip
|
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.
|
Stretch
|
The image within the ImageDashboardItem is stretched or shrunk as appropriate to fit the size of the ImageDashboardItem.
|
Zoom
|
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).
|
Squeeze
|
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.
|
See Also