Back to Devexpress

ImagePropertiesBase.Width Property

aspnet-devexpress-dot-web-dot-imagepropertiesbase-f2cabc39.md

latest1.6 KB
Original Source

ImagePropertiesBase.Width Property

Gets or sets the image’s width.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(typeof(Unit), "")]
public virtual Unit Width { get; set; }
vb
<DefaultValue(GetType(Unit), "")>
Public Overridable Property Width As Unit

Property Value

TypeDefaultDescription
UnitString.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

Height

ImagePropertiesBase Class

ImagePropertiesBase Members

DevExpress.Web Namespace