Show / Hide Table of Contents

Class ScriptEditor

Contains functions to interact with the script editor, if available.

public static class ScriptEditor
Remarks

Functions of this class work when editor process is running, even if current process wasn't started from it. To detect whether current process was started from editor, use folders.Editor (it is null if not).


Namespace: Au.More
Assembly: Au.dll
Inheritance
object
ScriptEditor

Properties

Name Description
Available

Returns true if editor is running.

IsPortable

Returns true if the editor program is installed as portable.

Methods

Name Description
GetCommandState(string)

Gets the state of an editor's menu command (checked, disabled).

GetFileInfo(bool)

Gets name, text and some info of the currently active file in editor.

GetFileInfo(string, bool)

Gets name, text and some info of a file in the current workspace in editor.

GetIcon(string, EGetIcon)

Gets icon string in specified format.

InvokeCommand(string, bool?, bool, bool)

Invokes an editor's menu command.

MainWindow(bool)

The main editor window.

Open(string, int?, int?)

Opens a script or other file. Also can move the text cursor. Does nothing if editor isn't running.

ShowMainWindow(bool?)

Shows or hides the main editor window.

TestCurrentFileInProject(params (string file, Action action)[])

If a specified class file is currently active in editor, calls a callback function (which can be or call a function in that file) and returns true.