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

SvgImageBox.SizeMode Property

Gets or sets whether and how the image is stretched.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.Utils.v19.2.dll

Declaration

[DefaultValue(SvgImageSizeMode.Clip)]
public SvgImageSizeMode SizeMode { get; set; }

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.

See Also