Back to Devexpress

CustomTaskDisplayTextEventArgs.Node Property

windowsforms-devexpress-dot-xtragantt-dot-customtaskdisplaytexteventargs.md

latest2.7 KB
Original Source

CustomTaskDisplayTextEventArgs.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#L69

csharp
{
    var row = gantt.GetDataRecordByNode(e.Node) as DashboardFlatDataSourceRow;
    e.RightText = flatData.GetDisplayText(dashboardItem.Metadata.Text.UniqueId, row);

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

vb
If dashboardItem.Metadata.Text IsNot Nothing Then
    Dim row = TryCast(gantt.GetDataRecordByNode(e.Node), DashboardFlatDataSourceRow)
    e.RightText = flatData.GetDisplayText(dashboardItem.Metadata.Text.UniqueId, row)

See Also

CustomTaskDisplayTextEventArgs Class

CustomTaskDisplayTextEventArgs Members

DevExpress.XtraGantt Namespace