Back to Devexpress

GanttTimelineTaskToolTipShowingEventArgs.Text Property

windowsforms-devexpress-dot-xtragantt-dot-gantttimelinetasktooltipshowingeventargs-676424b9.md

latest2.2 KB
Original Source

GanttTimelineTaskToolTipShowingEventArgs.Text Property

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

Declaration

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

Property Value

TypeDescription
String

The text displayed in a tooltip.

|

Remarks

The following example demonstrates how to display a regular tooltip for tasks displayed on the timeline:

csharp
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"]);
}
vb
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

SuperTip

GanttTimelineTaskToolTipShowingEventArgs Class

GanttTimelineTaskToolTipShowingEventArgs Members

DevExpress.XtraGantt Namespace