DxHtmlElement.Children Property
Returns HTML elements owned by this element. This collection includes only direct children; elements owned by child elements are not included.
Namespace: DevExpress.Utils.Html
Assembly: DevExpress.Data.Desktop.v24.2.dll
Declaration
Property Value
Type | Description |
---|---|
DevExpress.Utils.Html.Base.DxHtmlChildrenCollection | The collection of child HTML elements. |
Remarks
The following markup from the DevExpress demo creates a hierarchy of <div>
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>
The Children
collection for the topmost <div>
element returns two HTML elements (divs with the item_info
class). Data-bound divs owned by these children (name-brand
, specs
, name-category
, and button
IDs) are not included.
See Also