windowsforms-devexpress-dot-xtracharts-dot-sankey-dot-sankeydiagramcontrol-061ac7e5.md
Occurs for each node and allows you to customize a specific node based on a specified condition.
Namespace : DevExpress.XtraCharts.Sankey
Assembly : DevExpress.XtraCharts.v25.2.UI.dll
NuGet Package : DevExpress.Win.Charts
public event CustomizeSankeyNodeEventHandler CustomizeNode
Public Event CustomizeNode As CustomizeSankeyNodeEventHandler
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. |
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)";
}
}
Private Sub OnCustomizeNode(ByVal sender As Object, ByVal e As CustomizeSankeyNodeEventArgs)
If e.Label.Text Is "France" AndAlso e.Node.Level = 0 Then
e.Label.Font = SystemFonts.DefaultFont
e.Label.Text = "France (Source)"
End If
End Sub
See Also