GH_ScriptEditor

References
public class GH_ScriptEditor

Constructors

GH_ScriptEditor

#
public GH_ScriptEditor()

GH_ScriptEditor

#
public GH_ScriptEditor()

Fields

CacheLimit

#
public const int CacheLimit = 200

InstanceTable

#
public static readonly List<GH_ScriptEditor> InstanceTable

Properties

AutoSolveEnabled

#
public static bool AutoSolveEnabled { get; set; }

Cache_AppDataDirectory

#
Gets the directory in windows ApplicationData that contains the source code caches
public static string Cache_AppDataDirectory { get; }
A directory path.

CurrentPosition

#
Gets the current caret position.
public Point CurrentPosition { get; }

EditorFont

#
Gets or sets the font to use for the editor
public Font EditorFont { get; set; }

Language

#
Gets the language used in this Script editor.
public GH_ScriptLanguage Language { get; }

Owner

#
public object Owner { get; set; }

Visible

#
public bool Visible { get; set; }

Methods

AddButton

#
Adds another button to the toolbar. Buttons should be added before the form is shown.
public void AddButton(
button
Button to add.
)

AppendSourceCode

#
public void AppendSourceCode(
code
)

CacheCurrentScript

#
public bool CacheCurrentScript()
obsoleteUse CacheCurrentScriptAsync instead

CacheCurrentScriptAsync

#
public Task<bool> CacheCurrentScriptAsync()

CenterFormOnCursor

#
public void CenterFormOnCursor(
limitToScreen
)

Close

#
public void Close()

CodeEditor_TextChanged

#
public void CodeEditor_TextChanged()

CompileTimerTick

#
public void CompileTimerTick(
sender,
args
)

DefaultAssemblies

#
Get a list of all the assemblies that are included by default for Scripts. This list excludes mscorlib.dll as that one is considered non-omittable.
public static List<Assembly> DefaultAssemblies()
obsoleteUse DefaultAssemblyLocations() instead

DefaultAssemblyLocations

#
Get a list of all the assembly locations that are included by default for Scripts.
public static List<string> DefaultAssemblyLocations()

FindScriptEditor

#
Find the editor that is already associated with an object.
public static GH_ScriptEditor FindScriptEditor()

FocusOnSource

#
Collapses all code blocks except the one containing the mutable sections.
public void FocusOnSource()

GetAllCacheFiles

#
Gets a collection of all the cache files.
public static List<GH_MRU_Entry> GetAllCacheFiles()
Sorted list of all cache files.

GetSourceCode

#
public GH_CodeBlocks GetSourceCode()
obsoleteUse GetSourceCodeAsync instead

GetSourceCodeAsync

#
public Task<GH_CodeBlocks> GetSourceCodeAsync()

Initialize

#
public void Initialize()

RegisterAssemblies

#
public void RegisterAssemblies(
customReferences = null
)

RestoreScriptCache

#
public void RestoreScriptCache(
path
)

SetCurrentPosition

#
Set the current caret position.
public void SetCurrentPosition(
Point
position
Position to set.
)

SetSourceCode

#
public void SetSourceCode()

Show

#
public void Show()

Show

#
public void Show(
documentEditor
)

Events

Closed

#
public event EventHandler Closed

CompileCodeRequest

#
public event GH_ScriptEditor.CompileCodeRequestEventHandler CompileCodeRequest

HandleDestroyed

#
public event EventHandler HandleDestroyed

SourceCodeChanged

#
public event GH_ScriptEditor.SourceCodeChangedEventHandler SourceCodeChanged