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

ImagePropertiesBase.Width Property

Gets or sets the image’s width.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.1.dll

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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Width property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also