Skip to main content
All docs
V24.1

DxHtmlElement.ClientWidth Property

Returns the width of the element’s client area (the area that contains child elements of this HTML element).

Namespace: DevExpress.Utils.Html

Assembly: DevExpress.Data.Desktop.v24.1.dll

NuGet Packages: DevExpress.Data.Desktop, DevExpress.ExpressApp.Win.Design

Declaration

public int ClientWidth { get; }

Property Value

Type Description
Int32

The width of this element’s client area.

Remarks

The following figure illustrates ClientWidth and ClientHeight property values for the light blue "item_info_outer" element.

Client sizes of HTML elements

<div class="item_info_outer">
    <div class="item_info" id="item_info">
        <div class="name" id="name-brand">${TrademarkName} {Name}</div>
        <div class="specs" id="specs">${Modification}</div>
        <div class="specs" id="specs">${BodyStyleName}, {Torque}, {Horsepower} h.p.</div>
        <div class="category" id="name-category">${CategoryNameCaps}</div>
    </div>
    <div class="item_info">
        <div id="detailButton" class="button" onclick="onDetailButtonClick">Read More</div>
    </div>
</div>
.item_info {
    border: 1px solid Red;
}
See Also