Back to Devexpress

DashboardLayoutGroup.ChildNodes Property

dashboard-devexpress-dot-dashboardcommon-dot-dashboardlayoutgroup.md

latest3.7 KB
Original Source

DashboardLayoutGroup.ChildNodes Property

Provides access to the collection of child layout groups and items.

Namespace : DevExpress.DashboardCommon

Assembly : DevExpress.Dashboard.v25.2.Core.dll

NuGet Package : DevExpress.Dashboard.Core

Declaration

csharp
public DashboardLayoutNodeCollection ChildNodes { get; }
vb
Public ReadOnly Property ChildNodes As DashboardLayoutNodeCollection

Property Value

TypeDescription
DashboardLayoutNodeCollection

A collection of DashboardLayoutNode descendants representing child layout groups and items.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the ChildNodes property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-dashboard-create-layout-from-scratch/CS/Dashboard_LayoutCustomization/Form1.cs#L68

csharp
Dashboard dashboard = dashboardViewer1.Dashboard;
DashboardLayoutGroup rootGroup = dashboard.LayoutRoot.ChildNodes[0] as DashboardLayoutGroup;
if ((rootGroup != null) && (rootGroup.ChildNodes.Count > 1))

winforms-dashboard-window-calculation-example/CS/WindowCalculationExample/TabPageLoadHelper.cs#L85

csharp
{
    foreach (DashboardLayoutNode currentNode in ((DashboardLayoutGroup)copyFrom).ChildNodes)
    {

winforms-dashboard-create-layout-from-scratch/VB/Dashboard_LayoutCustomization/Form1.vb#L55

vb
Dim dashboard As Dashboard = dashboardViewer1.Dashboard
Dim rootGroup As DashboardLayoutGroup = TryCast(dashboard.LayoutRoot.ChildNodes(0), DashboardLayoutGroup)
If (rootGroup IsNot Nothing) AndAlso (rootGroup.ChildNodes.Count > 1) Then

winforms-dashboard-window-calculation-example/VB/WindowCalculationExample/TabPageLoadHelper.vb#L100

vb
If TypeOf copyFrom Is DashboardLayoutGroup Then
    For Each currentNode As DashboardLayoutNode In CType(copyFrom, DashboardLayoutGroup).ChildNodes
        Dim node As DashboardLayoutNode = New DashboardLayoutItem()

See Also

DashboardLayoutGroup Class

DashboardLayoutGroup Members

DevExpress.DashboardCommon Namespace