Constructors

GH_DocumentEditor

#
public GH_DocumentEditor()

Properties

Collapsed

#
Gets a value indicating whether or not the form is currently collapsed.
public bool Collapsed { get; }

FormShepard

#
Gets the form shepard for this window. Register your modeless dialogs with this shepard if you want to be popular.
public GH_FormShepard FormShepard { get; }

Methods

ClearStatusBar

#
Clear the Grasshopper status-bar.
public void ClearStatusBar()

CloseForReal

#
Really, really close the window.
public void CloseForReal()

CollapseForm

#
Collapses the form into the title bar area.
public void CollapseForm()

DisableUI

#
Disable all modifier UI.
public void DisableUI()

Dispose

#
protected override void Dispose(
disposing
)
Form.Dispose

EnableUI

#
Enable all modifier UI.
public void EnableUI()

ExpandForm

#
Expands the form if it is currenly collapsed.
public void ExpandForm()

FadeIn

#
Call this method if the prompt switches back to Grasshopper.
public void FadeIn()

FadeOut

#
Call this method if the prompt switches to Rhino.
public void FadeOut()

FixCanvasToolbarState

#
Enabled/Disables the appropriate buttons depending on whether there is a document loaded on the canvas.
public void FixCanvasToolbarState()

ScriptAccess_CloseAllDocuments

#
Closes all documents in the Document Queue.
public bool ScriptAccess_CloseAllDocuments()
True on success, false on failure.

ScriptAccess_CloseDocument

#
Closes the currently active document and loads the next available document into the canvas. Changes will not be saved.
public bool ScriptAccess_CloseDocument()
True on success, false on failure.

ScriptAccess_IsDocument

#
Returns true if there is an active document.
public bool ScriptAccess_IsDocument()

ScriptAccess_IsDocumentModified

#
Gets the modified flag of the currently loaded document.
public bool ScriptAccess_IsDocumentModified()
True if the document has been modified, false if not or if there is no document.

ScriptAccess_NewDocument

#
Creates a new document and loads it into the Canvas.
public bool ScriptAccess_NewDocument()

ScriptAccess_OpenDocument

#
Displays a command line interface for File Open... then loads that file into the Canvas.
public bool ScriptAccess_OpenDocument()
True on success, false on failure.

ScriptAccess_OpenDocument

#
Loads a specific file off the hard disk into the Canvas.
public bool ScriptAccess_OpenDocument(
filename
File to load.
)
True on success, false on failure.

ScriptAccess_SaveDocument

#
Saves the document currently loaded in the Canvas. If the document hasn't been saved before then a Save... dialog box will be shown.
public bool ScriptAccess_SaveDocument()
True on success, false on failure.

ScriptAccess_SaveDocumentAs

#
Saves the currently active document to disk.
public bool ScriptAccess_SaveDocumentAs()
True on success, false on failure.

ScriptAccess_SaveDocumentAs

#
Saves the currently active document to disk.
public bool ScriptAccess_SaveDocumentAs(
path
Path of save destination.
)
True on success, false on failure.

SetStatusBarEvent

#
Set a new message on the Grasshopper status bar.
public void SetStatusBarEvent(
event
Message to set
)

ToggleForm

#
Collapses the form if it's currently expanded or expands the form if it's currently collapsed.
public void ToggleForm()

Events

AggregateShortcutMenuItems

#
This event is raised whenever a GH_DocumentEditor collects all shortcuttable menu items. If you added items to the menu and you want to be able to have custom shortcuts on these items, you must handle this event and insert your own items.
public static event GH_DocumentEditor.AggregateShortcutMenuItemsEventHandler AggregateShortcutMenuItems

EditorFoldStateChanged

#
This event is raised whenever the main windows folds or unfolds.
public event GH_DocumentEditor.EditorFoldStateChangedEventHandler EditorFoldStateChanged