Skip to main content
Tab

ImageEditPropertiesBase.ImageWidth Property

Gets or sets the width of the image displayed within the image control.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(typeof(Unit), "")]
public virtual Unit ImageWidth { get; set; }

Property Value

Type Default Description
Unit String.Empty

A Unit value representing the image’s width.

Remarks

If the image’s height and width are not specified, the image is displayed in its original size. Use the ImageWidth property to override the initial width of the displayed image. If the image’s width is specified, the displayed image is stretched or shrunk as appropriate to match the specified width.

Note

The ImageWidth property synchronizes its value with the editor’s ASPxImageBase.Width property.

See Also