The standard editor window for Grasshopper. There's only ever at most one of these.
Constructors
Properties
CurrentDocument
Gets the Rhino document associated with the Rhino main window which is currently the owner of this form.
CurrentRhinoWindow
protected Window CurrentRhinoWindow { get; }
Gets the Rhino window this form is looking to.
Instance
#public static Editor Instance { get; }
Gets the one and only instance of the editor window. This property may return null if the editor hasn't been instantiated yet.
MostRecentActiveDocument
#Gets the path to the most recently loaded active documents. This property only really makes sense at the very start of the Grasshopper life-cycle.
MostRecentLoadedDocuments
#Gets the paths to the most recently loaded documents. Note that this list excludes the most recently loaded active document. This property only really makes sense at the very start of the Grasshopper life-cycle.
ThisOrRhino
#public static Window ThisOrRhino { get; }
Gets the editor window, or the main Rhino window if the editor is either undefined or not visible.
Methods
BeginRhinoGetter
#Call this method if you are about to start a Rhino viewport getter. It will hide the Grasshopper editor for the duration.
Parameters:
| doc (RhinoDoc = null) |
Returns: False if there is no target document, or if there is already an active getter.
OnOwnerAssigned
protected virtual void OnOwnerAssigned()
Override this method to get informed when the Owner of this form is assigned.
OnOwnerRemoved
protected virtual void OnOwnerRemoved()
Override this method to get informed when the Owner of this form is removed.
ShowEditor
#Create a new editor form or return the currently existing editor form. Note, if the form exists and is hidden or off-screen, this method will not change that. Call the EnsureVisible() method for that.
UpdateWindowTitle
#public void UpdateWindowTitle()