ChartControl.ClearSelection(Boolean) Method

Deselects all selected chart elements; optionally deselects hot-tracked elements as well.

Namespace: DevExpress.XtraCharts

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

Declaration

public void ClearSelection(
    bool clearHot
)
Public Sub ClearSelection(
    clearHot As Boolean
)

Parameters

Name Type Description
clearHot Boolean

true to deselect hot-tracked elements; otherwise, false.

Remarks

Use the ClearSelection method to implement custom selection of chart elements at runtime. This method deselects all the selected elements within a chart. If an element is hot-tracked, this method will unselect it if true is passed for the clearHot parameter. To set the selection state of any chart element, the ChartControl.SetObjectSelection method should be used.

NOTE

To enable standard selection of chart elements by end-users at runtime, set the ChartControl.RuntimeSelection property to true.

See Also