Skip to content
API referenceDevelopmentEditor scriptingEngine ccf7d03f
Synced
  • Creates a passive editor context for one project.

API: scripting
Project: Inno.Editor.Core
Scope: Editor

public InnoEditor.Core.EditorContext.EditorContext(string projectDirectory, InnoEditor.Core.EditorKeyboardPolicy keyboard, string? initialLayoutDocument = null)

Parameter projectDirectory: The project root containing Assets and Library.

Parameter keyboard: The explicit immutable conventions selected by product composition.

Parameter initialLayoutDocument: An optional host-owned initial settings document, installed atomically only when editor.ini does not exist. Existing documents, including empty files, are preserved.

Exception T:System.ArgumentNullException: The keyboard policy is null.

Exception T:System.ArgumentException: Thrown when projectDirectory is empty.

Exception T:System.IO.IOException: The current document cannot be read or its initial document cannot be installed.

Exception T:System.UnauthorizedAccessException: The caller cannot access or initialize the project settings document.