The GH_DocumentServer type exposes the following members.
Add a new document to the global list. If the document is already registered nothing will happen.
Add a new document to the global list. If there already is a document with the given path, it will be made active.
Adds a new document to the global list. If a template file has been set, this document will be based on the template.
Gets a value indicating whether or not the given document is inside the list.
Gets the index of the given document.
Gets the index of the document that matches the filepath.
Gets the document index that is associated with the specified autosave location.
Gets the most important, non-active document.
Push a document to the top of the list, meaning it will be first in line when a new default document needs to be selected.
Remove all documents in the global list.
Removes a specific document from the global list. If the document isn't registered nothing will happen. If the document is owned by an IGH_DocumentOwner, the owner will be informed of the removal.
Remove a document correctly from the server. This method shows user-interface prompts if there is unsaved data and will also save if needed.