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.CustomizeNode Event

Occurs for each node and allows you to customize a specific node based on a specified condition.

Namespace: DevExpress.XtraCharts.Sankey

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

Declaration

public event CustomizeSankeyNodeEventHandler CustomizeNode
Public Event CustomizeNode As CustomizeSankeyNodeEventHandler

Event Data

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

Property Description
Label Returns a node label to be customized.
Node Returns a node to be customized.
NodeColor Returns a node color.

Remarks

The following code customizes label settings for the "France" node:

sankeyDiagramControl1.CustomizeNode += OnCustomizeNode;
//...
private void OnCustomizeNode(object sender, CustomizeSankeyNodeEventArgs e) {
    if (e.Label.Text == "France" && e.Node.Level == 0) {
        e.Label.Font = SystemFonts.DefaultFont;
        e.Label.Text = "France (Source)";
    }
}
See Also