Tab
A newer version of this page is available. Switch to the current version.

LayoutItemBase.Width Property

Gets or sets the layout item width.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

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

Property Value

Type Default Description
Unit

String.Empty

A Unit value that specifies the width of the layout item.

Remarks

IMPORTANT
  • If the item width is specified in percents, the width is applied to the HTML element containing the item, i.e., to a table cell or div element. In this case, the item width is 100%.
  • If the item width is specified in pixels, the width is applied to the item itself.

Note that the item container width can be more than the item width. It can be useful when creating a responsive layout.

See Also