Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

GanttTimelineTaskToolTipShowingEventArgs.SuperTip Property

Gets or sets a super tooltip for a task displayed on the timeline.

Namespace: DevExpress.XtraGantt

Assembly: DevExpress.XtraGantt.v24.2.dll

NuGet Package: DevExpress.Win.Gantt

#Declaration

public SuperToolTip SuperTip { get; set; }

#Property Value

Type Description
SuperToolTip

The super tooltip.

#Remarks

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

Display Super Tooltip - WinForms Gantt Control

using System.Diagnostics;
using DevExpress.Utils;
using DevExpress.XtraGantt;

public Form1() {
  // ...
  ganttControl1.TimelineTaskToolTipShowing += GanttControl1_TimelineTaskToolTipShowing;
  // Specifies a Tooltip controller.
  ganttControl1.ToolTipController = toolTipController1;
  toolTipController1.HyperlinkClick += ToolTipController1_HyperlinkClick;
}

private void GanttControl1_TimelineTaskToolTipShowing(object sender, GanttTimelineTaskToolTipShowingEventArgs e) {
  SuperToolTip supertooltip = new SuperToolTip() { AllowHtmlText = DefaultBoolean.True };
  supertooltip.Items.AddTitle(e.Node["Name"].ToString());
  supertooltip.Items.Add(string.Format("{0:d} - {1:d}<br>{2}", e.Node["StartDate"], e.Node["EndDate"], e.Node["Description"]));
  supertooltip.Items.AddSeparator();
  supertooltip.Items.Add("<a href='https://docs.devexpress.com/WindowsForms/2398/common-features/tooltips'>Documentation</a>");
  e.SuperTip = supertooltip;
}

private void ToolTipController1_HyperlinkClick(object sender, HyperlinkClickEventArgs e) {
  Process process = new Process();
  process.StartInfo.FileName = (e.Link);
  process.StartInfo.Verb = "open";
  process.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
  try {
      process.Start();
  } catch { }
}
See Also