Back to Devexpress

CustomizeSankeyNodeEventArgs Class

corelibraries-devexpress-dot-xtracharts-dot-sankey-ec10b408.md

latest2.2 KB
Original Source

CustomizeSankeyNodeEventArgs Class

Data for the CustomizeNode event.

Namespace : DevExpress.XtraCharts.Sankey

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
public class CustomizeSankeyNodeEventArgs :
    EventArgs
vb
Public Class CustomizeSankeyNodeEventArgs
    Inherits EventArgs

CustomizeSankeyNodeEventArgs is the data class for the following events:

Remarks

Handle the CustomizeNode event to access a specific node and customize it based on a certain condition:

csharp
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)";
    }
}
vb
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

Inheritance

Object EventArgs CustomizeSankeyNodeEventArgs

See Also

CustomizeSankeyNodeEventArgs Members

DevExpress.XtraCharts.Sankey Namespace