Back to Devexpress

ChartCollectionBase.CancelUpdate() Method

corelibraries-devexpress-dot-xtracharts-dot-chartcollectionbase-965dea83.md

latest2.2 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
public void CancelUpdate()
vb
Public Sub 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

BeginUpdate()

EndUpdate()

ChartCollectionBase Class

ChartCollectionBase Members

DevExpress.XtraCharts Namespace