Class
UpdateScope

Provides a disposable scope that executes a begin action on creation and an end action on disposal, enabling batch update patterns.

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.Core

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Syntax:

cs-api-definition
public sealed class UpdateScope : IDisposable

Inheritance: objectUpdateScope

Implements: IDisposable

Constructors

UpdateScope(Action, Action)

Initializes a new instance of the UpdateScope class, executing the begin action immediately.

Declaration

cs-api-definition
public UpdateScope(Action beginUpdateAction, Action endUpdateAction)

Parameters

beginUpdateAction

Action

The begin update action.

endUpdateAction

Action

The end update action.

Methods

Dispose()

Executes the end update action when the scope is disposed.

Declaration

cs-api-definition
public void Dispose()

Implements IDisposable.Dispose()