GH_CodeBlock

References
public class GH_CodeBlock
Represents a collection of lines of code in the GH_ScriptEditor window.

Constructors

GH_CodeBlock

#
public GH_CodeBlock()

GH_CodeBlock

#
public GH_CodeBlock(IEnumerable<string> lines, bool readonly)
lines (IEnumerable<string>)
readonly (bool)

GH_CodeBlock

#
public GH_CodeBlock(string line, bool readonly)
line (string)
readonly (bool)

Properties

Lines

#
public IEnumerable<string> Lines { get; }
Gets or sets the line of code.

ReadOnly

#
public bool ReadOnly { get; set; }
Gets or sets the readonly state of the code.

Methods

AddLine

#
public void AddLine(string line)
line (string)

AddLines

#
public void AddLines(IEnumerable<string> lines)
lines (IEnumerable<string>)

ToString

#
public override string ToString()
Object.ToString