Click or drag to resize

IBatchEditable Interface

Provides a mechanism for batch editing.

Namespace:  Demo3D.Common
Assembly:  Demo3D.IO (in Demo3D.IO.dll) Version: 15.0.2.11458
Syntax
C#
public interface IBatchEditable

The IBatchEditable type exposes the following members.

Methods
  NameDescription
Public methodBeginEditAsync
Start batch editing. Use BatchEdit where possible instead.
Public methodEndEditAsync
End batch editing.
Top
Events
  NameDescription
Public eventEditBegunAsync
Raised on first call to BeginEditAsync(Boolean).
Public eventEditEndedAsync
Raised on last call to EndEditAsync(Boolean).
Top
Remarks
These methods should only ever be called in pairs, first BeginEditAsync(Boolean) and later EndEditAsync(Boolean). Consider using BatchEdit.
// For async code.
await BatchEdit.BeginEditAsync(editable).UsingAsync(() => {
    // issue commands to be batched
});

// For synchronous code.
using (new BatchEdit(editable)) {
    // issue commands to be batched
}
See Also