LayoutItemBase.Width Property
In This Article
Gets or sets the layout item width.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
#Property Value
Type | Default | Description |
---|---|---|
Unit | String. |
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.
<dx:LayoutItem Caption="Place" ColSpan="1" Width="9%" />
See Also