Back to Devexpress

VirtualTreeGetChildNodesInfo.Children Property

windowsforms-devexpress-dot-xtratreelist-dot-virtualtreegetchildnodesinfo.md

latest5.6 KB
Original Source

VirtualTreeGetChildNodesInfo.Children Property

Gets or sets the collection of children for the currently processed business object.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList

Declaration

csharp
public IList Children { get; set; }
vb
Public Property Children As IList

Property Value

TypeDescription
IList

Initially this property is set to a null reference. Use this property to assign a list of children for the currently processed object.

|

Remarks

Use this property to supply children for the currently processed business object. The business object is referred to by the VirtualTreeGetChildNodesInfo.Node property.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Children 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-treelist-virtual-mode/CS/ExampleMainForm.cs#L39

csharp
{
    e.Children = new string[] { "Root node 1",
                                "Root node 2",

winforms-tokenedit-dropdown-with-treelist/CS/TokenEditTest/CustomTokenEditDropDownControl.cs#L81

csharp
if(e.Node is TreeListDataSet) {
    e.Children = ((TreeListDataSet)e.Node).GetChildren();
}

winforms-spreadsheet-chart-api/CS/SpreadsheetChartAPISamples/Form1.cs#L182

csharp
{
    args.Children = examples;
    treeListRootNodeLoading = false;

winforms-spreadsheet-pivot-table-api/CS/SpreadsheetPivotTableExamples/Form1.cs#L170

csharp
{
    args.Children = examples;
    treeListRootNodeLoading = false;

winforms-spreadsheetcontrol-api-part-3/CS/SpreadsheetControl_API_Part03/Form1.cs#L343

csharp
{
    args.Children = examples;
    treeListRootNodeLoading = false;

winforms-treelist-virtual-mode/VB/ExampleMainForm.vb#L29

vb
If Equals(sCurrentNode, Nothing) Then
    e.Children = New String() {"Root node 1", "Root node 2", "Root node 3"}
Else

winforms-tokenedit-dropdown-with-treelist/VB/TokenEditTest/CustomTokenEditDropDownControl.vb#L91

vb
If TypeOf e.Node Is TreeListDataSet Then
    e.Children = CType(e.Node, TreeListDataSet).GetChildren()
End If

winforms-spreadsheet-chart-api/VB/SpreadsheetChartAPISamples/Form1.vb#L176

vb
If treeListRootNodeLoading Then
    args.Children = examples
    treeListRootNodeLoading = False

winforms-spreadsheet-pivot-table-api/VB/SpreadsheetPivotTableExamples/Form1.vb#L162

vb
If treeListRootNodeLoading Then
    args.Children = examples
    treeListRootNodeLoading = False

winforms-spreadsheetcontrol-api-part-3/VB/SpreadsheetControl_API_Part03/Form1.vb#L339

vb
If treeListRootNodeLoading Then
    args.Children = examples
    treeListRootNodeLoading = False

See Also

VirtualTreeGetChildNodesInfo Class

VirtualTreeGetChildNodesInfo Members

DevExpress.XtraTreeList Namespace