Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ChartControl.ClearSelection(Boolean) Method

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

Namespace: DevExpress.XtraCharts

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

NuGet Package: DevExpress.Win.Charts

#Declaration

public void ClearSelection(
    bool clearHot
)

#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, use the ChartControl.SelectionMode property.

See Also