# GH_SourceCodeEditor class

Namespace: [Grasshopper.GUI](https://developer.rhino3d.com/api/gh1/namespace/grasshopper.gui.md) · Assembly: [Grasshopper](https://developer.rhino3d.com/api/gh1/assembly/grasshopper.md)

```cs
[DesignerGenerated]
public class GH_SourceCodeEditor : Form
```

Default VB and C# editor for Grasshopper.

## Properties

- [CustomPanel](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-sourcecodeeditor/custompanel.md): Gets the custom panel. If you want to add extra controls to this form, this is where I suggest you put them.
- [ManagedID](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-sourcecodeeditor/managedid.md)
- [pnlCustomContent](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-sourcecodeeditor/pnlcustomcontent.md)
- [SC_Lines](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-sourcecodeeditor/sc-lines.md): Gets a list representing all the source code lines in this editor.

## Methods

- [AppendLine](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-sourcecodeeditor/appendline.md): (2 overloads)
- [AppendLines](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-sourcecodeeditor/appendlines.md): (2 overloads)
- [Clear](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-sourcecodeeditor/clear.md)
- [CollapseAll](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-sourcecodeeditor/collapseall.md): Collapse all code blocks.
- [CreateManagedEditor](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-sourcecodeeditor/createmanagededitor.md): (static) Create a new editor that is known by the manager.
- [DestroyManagedEditor](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-sourcecodeeditor/destroymanagededitor.md): (static) Close, dispose and remove the editor with the given ID
- [Dispose](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-sourcecodeeditor/dispose.md)
- [GetManagedEditor](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-sourcecodeeditor/getmanagededitor.md): (static) Retrieve the editor from the manager that is linked to the given ID.
- [IsManagedEditor](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-sourcecodeeditor/ismanagededitor.md): (static) Tests to see if a given ID is already defined.
- [RegisterDefaultAssemblies](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-sourcecodeeditor/registerdefaultassemblies.md)
- [RegisterDefaultGrasshopperNameSpaces](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-sourcecodeeditor/registerdefaultgrasshoppernamespaces.md)
- [RegisterDefaultRhinoCommonNameSpaces](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-sourcecodeeditor/registerdefaultrhinocommonnamespaces.md)
- [RegisterDefaultSystemNameSpaces](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-sourcecodeeditor/registerdefaultsystemnamespaces.md)
