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

API: engine
Project: Inno.Editor.Core

public Inno.Editor.Core.EditorContext.EditorContext(string projectDirectory, Inno.Editor.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.