# Editor class

Namespace: [Grasshopper2.UI](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.ui.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public class Editor : RhinoSlavedForm
```

The standard editor window for Grasshopper. There's only ever at most one of these.

## Constructors

- [Editor](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.editor/ctor.md): Create a new form.

## Properties

- [Canvas](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.editor/canvas.md): Gets the canvas on this form.
- [Collapsed](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.editor/collapsed.md): Gets or sets whether the editor is Collapsed into its own title bar.
- [DefinedLayouts](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.editor/definedlayouts.md): (static) Enumerate over all available layouts for TabbedPanels.
- [Documents](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.editor/documents.md): Gets the collection of documents which are loaded into this editor.
- [EditorSettings](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.editor/editorsettings.md): Gets the settings associated with this window.
- [InitialLayout](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.editor/initiallayout.md): (static) Gets the name of the layout rules currently set as active.
- [Instance](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.editor/instance.md): (static) Gets the one and only instance of the editor window. This property may return null if the editor hasn't been instantiated yet.
- [MostRecentActiveDocument](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.editor/mostrecentactivedocument.md): 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.
- [MostRecentCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.editor/mostrecentcount.md): Count how many recently loaded documents can be potentially loaded.
- [MostRecentLoadedDocuments](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.editor/mostrecentloadeddocuments.md): 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.
- [ShowNotes](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.editor/shownotes.md): Gets or sets whether to show the notes window.
- [StatusBar](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.editor/statusbar.md): Gets the status bar on this form.
- [Tabs](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.editor/tabs.md): Gets the tab control on this form.
- [ThisOrRhino](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.editor/thisorrhino.md): (static) Gets the editor window, or the main Rhino window if the editor is either undefined or not visible.

## Methods

- [BeginRhinoGetter](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.editor/beginrhinogetter.md): (static) Call this method if you are about to start a Rhino viewport getter. It will hide the Grasshopper editor for the duration.
- [HandleShutDown](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.editor/handleshutdown.md)
- [ShowEditor](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.editor/showeditor.md): (static) 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 [Editor.EnsureVisible()](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.editor.md) method for that.
- [UpdateWindowTitle](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.editor/updatewindowtitle.md)

## Inherited Members

- From [RhinoSlavedForm](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.rhinoslavedform.md): [CurrentDocument](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.rhinoslavedform/currentdocument.md), [CurrentRhinoWindow](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.rhinoslavedform/currentrhinowindow.md), [OnOwnerAssigned](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.rhinoslavedform/onownerassigned.md), [OnOwnerRemoved](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.rhinoslavedform/onownerremoved.md)
