Back to Devexpress

GanttControl.TaskToolTipShowing Event

windowsforms-devexpress-dot-xtragantt-dot-ganttcontrol-a6fb915e.md

latest2.3 KB
Original Source

GanttControl.TaskToolTipShowing Event

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

Declaration

csharp
[DXCategory("Events")]
public event GanttTaskToolTipShowingEventHandler TaskToolTipShowing
vb
<DXCategory("Events")>
Public Event TaskToolTipShowing As GanttTaskToolTipShowingEventHandler

Event Data

The TaskToolTipShowing event's data class is GanttTaskToolTipShowingEventArgs. The following properties provide information specific to this event:

PropertyDescription
InfoProvides view information about the processed task.
NodeGets the processed node.
SuperTipGets or sets the super tooltip.
TextGets or sets the text for the regular tooltip.

Example

The code below shows a regular tooltip for a task.

csharp
using DevExpress.XtraGantt;

private void ganttControl1_TaskToolTipShowing(object sender, GanttTaskToolTipShowingEventArgs e) {
    e.Text = e.Node.GetText();
}
vb
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

GanttControl Class

GanttControl Members

DevExpress.XtraGantt Namespace