All docs
V20.2
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

SankeyDiagramControl.CustomizeLinkToolTip Event

Occurs before a tooltip is displayed for a link and allows you to format tooltip content.

Namespace: DevExpress.XtraCharts.Sankey

Assembly: DevExpress.XtraCharts.v20.2.UI.dll

Declaration

public event CustomizeSankeyLinkToolTipEventHandler CustomizeLinkToolTip
Public Event CustomizeLinkToolTip As CustomizeSankeyLinkToolTipEventHandler

Event Data

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

Property Description
Content Inherited from CustomizeSankeyToolTipEventArgs.
Link Returns the link whose tooltip is customized.
Title Specifies the tooltip's title. Inherited from CustomizeSankeyToolTipEventArgs.

Remarks

Handle the CustomizeNodeToolTip event to customize tooltips for nodes.

Example

To format tooltip text for links, handle the CustomizeLinkToolTip event and specify the CustomizeSankeyToolTipEventArgs.Title and CustomizeSankeyToolTipEventArgs.Content properties.

private void Form1_Load(object sender, EventArgs e) {
    sankeyDiagramControl1.ToolTipEnabled = DevExpress.Utils.DefaultBoolean.True;
    sankeyDiagramControl1.ToolTipController = new DevExpress.Utils.ToolTipController { 
        ToolTipType = DevExpress.Utils.ToolTipType.Flyout, 
        AllowHtmlText = true 
    };
    sankeyDiagramControl1.CustomizeLinkToolTip += OnCustomizeLinkToolTip;
}
private void OnCustomizeLinkToolTip(object sender, CustomizeSankeyLinkToolTipEventArgs e) {
    e.Title = $"{e.Link.Source.Tag} → {e.Link.Target.Tag}";
    e.Content = $"{e.Link.TotalWeight}";
}
See Also