Skip to main content
Tab

ImagePropertiesBase.Width Property

Gets or sets the image’s width.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web

Declaration

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

Property Value

Type Default Description
Unit String.Empty

A Unit that represents the image’s width.

Remarks

Use the Width property to specify the width of the image defined by the ImagePropertiesBase class.

Note that in order to correctly display a PNG file with alpha channel at runtime, the image’s size (the Width and ImagePropertiesBase.Height properties) should be specified explicitly.

See Also