DocumentStack

References
public sealed class DocumentStack
A stack of nested documents. A DocumentBag contains a collection of DocumentStack objects. Each stack contains a root document which is (ideally) associated with a *.ghz file. Then when nested documents are opened, they are pushed onto the stack. When editing a cluster, inside a cluster inside the root document, the stack will contain three documents, the innermost one being at the head.

Constructors

DocumentStack

#
public DocumentStack()

Properties

ContainsUnsaved

#
Gets whether any of the documents in this stack currently have unsaved state.
public bool ContainsUnsaved { get; }

Count

#
Gets the number of documents in this stack.
public int Count { get; }

Documents

#
Enumerate over all documentsm starting with the head.
public IEnumerable<Document> Documents { get; }

Root

#
Gets the root document of this stack. This never changes.
public Document Root { get; }

Methods

RegisterAcceptHandler

#
Add a callback to a specific document for acceptance handling.
public bool RegisterAcceptHandler(
doc,
callback
)

RegisterRejectHandler

#
Add a callback to a specific document for rejection handling.
public bool RegisterRejectHandler(
doc,
callback
)