Class UpdateScope
Provides a disposable scope that executes a begin action on creation and an end action on disposal, enabling batch update patterns.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Spreadsheet.Core
Assembly: Telerik.Windows.Documents.Spreadsheet.dll
Syntax
public sealed class UpdateScope : IDisposable
Constructors
UpdateScope(Action, Action)
Initializes a new instance of the UpdateScope class, executing the begin action immediately.
Declaration
public UpdateScope(Action beginUpdateAction, Action endUpdateAction)
Parameters
|
System.Action
beginUpdateAction
The begin update action. |
|
System.Action
endUpdateAction
The end update action. |
Methods
Dispose()
Executes the end update action when the scope is disposed.
Declaration
public void Dispose()