ChartControl.ClearSelection(Boolean) Method

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

Namespace: DevExpress.XtraCharts

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


public void ClearSelection(
    bool clearHot


Name Type Description
clearHot Boolean

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


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.


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

See Also