Skip to main content

ChartCollectionBase.CancelUpdate() Method

Unlocks the collection after a call to the ChartCollectionBase.BeginUpdate method and causes an immediate update without raising any notification events.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v24.1.dll

NuGet Package: DevExpress.Charts

Declaration

public void CancelUpdate()

Remarks

Calling the ChartCollectionBase.BeginUpdate method locks a ChartCollectionBase instance to prevent any change notification events from being fired in response to any of its properties being changed. The code performing multiple changes must be enclosed within BeginUpdate/EndUpdate or BeginUpdate/CancelUpdate method calls.

Calling the CancelUpdate method after a call to the ChartCollectionBase.BeginUpdate method unlocks the ChartCollectionBase object but doesn’t raise any change notifications. To unlock the collection object and raise all the notification events, call the ChartCollectionBase.EndUpdate method.

See Also