Back to Devexpress

CustomDrawTaskEventArgs.Node Property

windowsforms-devexpress-dot-xtragantt-dot-customdrawtaskeventargs.md

latest2.8 KB
Original Source

CustomDrawTaskEventArgs.Node Property

Gets the processed node.

Namespace : DevExpress.XtraGantt

Assembly : DevExpress.XtraGantt.v25.2.dll

NuGet Package : DevExpress.Win.Gantt

Declaration

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

Property Value

TypeDescription
GanttControlNode

An object that specifies the processed node.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference 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-dashboard-custom-items-extension/CS/CustomItemExtension/CustomItems/GanttItem/GanttItemControlProvider.cs#L76

csharp
{
    DashboardFlatDataSourceRow row = gantt.GetDataRecordByNode(e.Node) as DashboardFlatDataSourceRow;
    int colorData = (int)flatData.GetValue(flatData.GetColoringColumn().Name, row);

winforms-dashboard-custom-items-extension/VB/CustomItemExtension/CustomItems/GanttItem/GanttItemControlProvider.vb#L72

vb
Private Sub Gantt_CustomPrintTask(ByVal sender As Object, ByVal e As DevExpress.XtraGantt.Printing.CustomPrintTaskEventArgs)
    Dim row As DashboardFlatDataSourceRow = TryCast(gantt.GetDataRecordByNode(e.Node), DashboardFlatDataSourceRow)
    Dim colorData As Integer = DirectCast(flatData.GetValue(flatData.GetColoringColumn().Name, row), Integer)

See Also

CustomDrawTaskEventArgs Class

CustomDrawTaskEventArgs Members

DevExpress.XtraGantt Namespace