windowsforms-devexpress-dot-xtragantt-dot-ganttcontrol-a6fb915e.md
Fires when a tooltip for a task is about to be shown.
Namespace : DevExpress.XtraGantt
Assembly : DevExpress.XtraGantt.v25.2.dll
NuGet Package : DevExpress.Win.Gantt
[DXCategory("Events")]
public event GanttTaskToolTipShowingEventHandler TaskToolTipShowing
<DXCategory("Events")>
Public Event TaskToolTipShowing As GanttTaskToolTipShowingEventHandler
The TaskToolTipShowing event's data class is GanttTaskToolTipShowingEventArgs. The following properties provide information specific to this event:
| Property | Description |
|---|---|
| Info | Provides view information about the processed task. |
| Node | Gets the processed node. |
| SuperTip | Gets or sets the super tooltip. |
| Text | Gets or sets the text for the regular tooltip. |
The code below shows a regular tooltip for a task.
using DevExpress.XtraGantt;
private void ganttControl1_TaskToolTipShowing(object sender, GanttTaskToolTipShowingEventArgs e) {
e.Text = e.Node.GetText();
}
Imports DevExpress.XtraGantt
Private Sub ganttControl1_TaskToolTipShowing(ByVal sender As Object, ByVal e As GanttTaskToolTipShowingEventArgs) _
Handles ganttControl1.TaskToolTipShowing
e.Text = e.Node.GetText()
End Sub
See Also