corelibraries-devexpress-dot-xtracharts-dot-sankey-ec10b408.md
Data for the CustomizeNode event.
Namespace : DevExpress.XtraCharts.Sankey
Assembly : DevExpress.XtraCharts.v25.2.dll
NuGet Package : DevExpress.Charts
public class CustomizeSankeyNodeEventArgs :
EventArgs
Public Class CustomizeSankeyNodeEventArgs
Inherits EventArgs
CustomizeSankeyNodeEventArgs is the data class for the following events:
Handle the CustomizeNode event to access a specific node and customize it based on a certain condition:
sankeyDiagramControl1.CustomizeNode += OnCustomizeNode;
//...
private void OnCustomizeNode(object sender, CustomizeSankeyNodeEventArgs e) {
if (e.Label.Text == "France" && e.Node.Level == 0) {
e.Label.Font = new Font("Tahoma", 16);
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 = New Font("Tahoma", 16)
e.Label.Text = "France (Source)"
End If
End Sub
Object EventArgs CustomizeSankeyNodeEventArgs
See Also