Back to Devexpress

VirtualTreeGetChildNodesInfo.Node Property

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

latest5.4 KB
Original Source

VirtualTreeGetChildNodesInfo.Node Property

Gets an instance of the business object being currently processed.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

csharp
public object Node { get; }
vb
Public ReadOnly Property Node As Object

Property Value

TypeDescription
Object

An object being currently processed.

|

Remarks

To access the current instance of the business object, type cast the value of the Node property to the type of your data.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Node 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-tokenedit-dropdown-with-treelist/CS/TokenEditTest/CustomTokenEditDropDownControl.cs#L80

csharp
void OnTreeListVirtualTreeGetChildNodes(object sender, VirtualTreeGetChildNodesInfo e) {
    if(e.Node is TreeListDataSet) {
        e.Children = ((TreeListDataSet)e.Node).GetChildren();

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

csharp
{
    if (args.Node == null)
        return;

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

csharp
{
    if (args.Node == null)
        return;

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

csharp
{
    if (args.Node == null)
        return;

winforms-richeditcontrol-common-api/CS/RichEditAPISample/Form1.cs#L450

csharp
else {
    if(args.Node == null)
        return;

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

vb
Private Sub OnTreeListVirtualTreeGetChildNodes(ByVal sender As Object, ByVal e As VirtualTreeGetChildNodesInfo) Handles treeList_Renamed.VirtualTreeGetChildNodes
    If TypeOf e.Node Is TreeListDataSet Then
        e.Children = CType(e.Node, TreeListDataSet).GetChildren()

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

vb
Else
    If args.Node Is Nothing Then
        Return

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

vb
Else
    If args.Node Is Nothing Then
        Return

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

vb
Else
    If args.Node Is Nothing Then Return
    Dim group As CodeExampleGroup = TryCast(args.Node, CodeExampleGroup)

winforms-richeditcontrol-common-api/VB/RichEditAPISample/Form1.vb#L443

vb
Else
    If args.Node Is Nothing Then
        Return

See Also

VirtualTreeGetChildNodesInfo Class

VirtualTreeGetChildNodesInfo Members

DevExpress.XtraTreeList Namespace