Back to Devexpress

CustomTaskDisplayTextEventArgs.RightText Property

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

latest2.8 KB
Original Source

CustomTaskDisplayTextEventArgs.RightText Property

Gets or sets the text displayed to the right of the task’s bar.

Namespace : DevExpress.XtraGantt

Assembly : DevExpress.XtraGantt.v25.2.dll

NuGet Package : DevExpress.Win.Gantt

Declaration

csharp
public string RightText { get; set; }
vb
Public Property RightText As String

Property Value

TypeDescription
String

A String value that specifies the text displayed to the right of the task’s bar.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the RightText 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#L70

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#L67

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

See Also

CustomTaskDisplayTextEventArgs Class

CustomTaskDisplayTextEventArgs Members

DevExpress.XtraGantt Namespace