windowsforms-devexpress-dot-xtragantt-dot-gantttimelinetasktooltipshowingeventargs-676424b9.md
Gets or sets a regular tooltip for a task displayed on the timeline.
Namespace : DevExpress.XtraGantt
Assembly : DevExpress.XtraGantt.v25.2.dll
NuGet Package : DevExpress.Win.Gantt
public string Text { get; set; }
Public Property Text As String
| Type | Description |
|---|---|
| String |
The text displayed in a tooltip.
|
The following example demonstrates how to display a regular tooltip for tasks displayed on the timeline:
using DevExpress.XtraGantt;
public Form1() {
// ...
ganttControl1.TimelineTaskToolTipShowing += GanttControl1_TimelineTaskToolTipShowing;
}
private void GanttControl1_TimelineTaskToolTipShowing(object sender, GanttTimelineTaskToolTipShowingEventArgs e) {
e.Text = string.Format("{0}: {1}", e.Node["Name"], e.Node["Description"]);
}
Imports DevExpress.XtraGantt
Public Sub New()
' ...
AddHandler ganttControl1.TimelineTaskToolTipShowing, AddressOf GanttControl1_TimelineTaskToolTipShowing
End Sub
Private Sub GanttControl1_TimelineTaskToolTipShowing(ByVal sender As Object, ByVal e As GanttTimelineTaskToolTipShowingEventArgs)
e.Text = String.Format("{0}: {1}", e.Node("Name"), e.Node("Description"))
End Sub
See Also
GanttTimelineTaskToolTipShowingEventArgs Class