Default VB and C# editor for Grasshopper.

Properties

CustomPanel

#
public Panel CustomPanel { get; }
Gets the custom panel. If you want to add extra controls to this form, this is where I suggest you put them.

ManagedID

#
public Guid ManagedID { get; }

pnlCustomContent

#
protected virtual Panel pnlCustomContent { get; set; }

SC_Lines

#
public GH_SourceCodeLines SC_Lines { get; }
Gets a list representing all the source code lines in this editor.

Methods

AppendLine

#
public void AppendLine(GH_SourceCodeLine line)
line (GH_SourceCodeLine)

AppendLine

#
public void AppendLine(string line, bool readonly)
line (string)
readonly (bool)

AppendLines

#
public void AppendLines(IEnumerable<GH_SourceCodeLine> lines)
lines (IEnumerable<GH_SourceCodeLine>)

AppendLines

#
public void AppendLines(string block, bool readonly)
block (string)
readonly (bool)

Clear

#
public void Clear()

CollapseAll

#
public void CollapseAll(int line_index)
Collapse all code blocks.
line_index (int)Index of line for collapse prevention, or negative if all lines are to be collapsed

CreateManagedEditor

#
public static GH_SourceCodeEditor CreateManagedEditor(Guid id)
Create a new editor that is known by the manager.
id (Guid)ID of editor
Returns a new blank editor or NULL if the id is already registered.

DestroyManagedEditor

#
public static bool DestroyManagedEditor(Guid id)
Close, dispose and remove the editor with the given ID
id (Guid)ID to dispose of.

Dispose

#
protected override void Dispose(bool disposing)
disposing (bool)
Form.Dispose

GetManagedEditor

#
public static GH_SourceCodeEditor GetManagedEditor(Guid id)
Retrieve the editor from the manager that is linked to the given ID.
id (Guid)The ID of the editor to retrieve
The editor for the given ID, or NULL if the ID is unknown

IsManagedEditor

#
public static bool IsManagedEditor(Guid id)
Tests to see if a given ID is already defined.
id (Guid)ID to test for.

RegisterDefaultAssemblies

#
public void RegisterDefaultAssemblies()

RegisterDefaultGrasshopperNameSpaces

#
public void RegisterDefaultGrasshopperNameSpaces()

RegisterDefaultRhinoCommonNameSpaces

#
public void RegisterDefaultRhinoCommonNameSpaces()

RegisterDefaultSystemNameSpaces

#
public void RegisterDefaultSystemNameSpaces()