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

ImageEditPropertiesBase.ImageWidth Property

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

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