Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

SvgImageBox.SizeMode Property

Gets or sets whether and how the image is stretched.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.Utils.v24.2.dll

NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

#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.

#Remarks

Use the SvgImageBox.ImageAlignment property to align an image within the control’s bounds.

See Also