Back to Devexpress

SankeyDiagramControl.HighlightedItems Property

windowsforms-devexpress-dot-xtracharts-dot-sankey-dot-sankeydiagramcontrol-9006e2c5.md

latest2.2 KB
Original Source

SankeyDiagramControl.HighlightedItems Property

Returns a collection of highlighted items (links and nodes).

Namespace : DevExpress.XtraCharts.Sankey

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

NuGet Package : DevExpress.Win.Charts

Declaration

csharp
[Browsable(false)]
public IList HighlightedItems { get; }
vb
<Browsable(False)>
Public ReadOnly Property HighlightedItems As IList

Property Value

TypeDescription
IList

A collection of highlighted items.

|

Remarks

The following code highlights diagram links that correspond to selected grid rows:

csharp
void gridView1_FocusedRowChanged(object sender, XtraGrid.Views.Base.FocusedRowChangedEventArgs e) {
    Export row = (Export)gridControl1.FocusedView.GetRow(e.FocusedRowHandle);
    sankeyDiagramControl1.HighlightedItems.Clear();
    sankeyDiagramControl1.HighlightedItems.Add(row);
    HighlightArrows(new List<Export> { row });
}
vb
Private Sub gridView1_FocusedRowChanged(ByVal sender As Object, ByVal e As XtraGrid.Views.Base.FocusedRowChangedEventArgs) Handles gridView1.FocusedRowChanged
    Dim row As Export = CType(gridControl1.FocusedView.GetRow(e.FocusedRowHandle), Export)
    sankeyDiagramControl1.HighlightedItems.Clear()
    sankeyDiagramControl1.HighlightedItems.Add(row)
    HighlightArrows(New List(Of Export) (New Export() {row}))
End Sub

Note

Run the following demo for the complete example: Tooltip

See Also

SankeyDiagramControl Class

SankeyDiagramControl Members

DevExpress.XtraCharts.Sankey Namespace