SvgImageBox.SizeMode Property
Gets or sets whether and how the image is stretched.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.Utils.v24.2.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
SvgImageSizeMode | Clip | A value that specifies whether the image is stretched, and how. |
Available values:
Name | Description |
---|---|
Clip | An image is not stretched. |
Squeeze | An image is displayed as is if its actual size is smaller than the size of the container. If the image size is larger than the container’s size, the image is shrunk proportionally to fit the container’s bounds. |
Stretch | An image is stretched to fit in the control’s area. |
Zoom | An image is stretched proportionally. The image fits within the area of the container in at least one direction. |
Remarks
Use the SvgImageBox.ImageAlignment property to align an image within the control’s bounds.
See Also