GH_CodeBlocks

List<1>References
Represents a list of source code blocks in a GH_ScriptEditor window.

Methods

Add

#
public void Add(
lines,
readonly
)

Add

#
public void Add(
line,
readonly
)

GetAllLines

#
Convert all blocks to a single array of lines and readonly flags.
public void GetAllLines(
ref string[]
lines,
ref bool[]
readonly
)

GetMutableCodeBlock

#
Get all the lines that belong to the Nth mutable code block.
public GH_CodeBlock GetMutableCodeBlock(
index
Index of mutable code block to retrieve.
)
An array of source code lines or null if there is no Nth block.

MergeConsecutiveBlocks

#
Merge all consecutive blocks with identical readonly flags.
public int MergeConsecutiveBlocks()
Number of blocks merged.

StringSplit

#
String split utility class.
public static List<string> StringSplit(
delim,
stream
)