Synced
EditorPanelAttribute.Constructor
Section titled “EditorPanelAttribute.Constructor”
- Creates a dockable panel registration with stable identity and presentation metadata.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Editor.Core
Scope: Editor
Declaration
Section titled “Declaration”public InnoEditor.Core.EditorPanelAttribute.EditorPanelAttribute(string id, string title, int order = 0, bool defaultOpen = true, string menuPath = "", bool separatorBefore = false)Parameters
Section titled “Parameters”Parameter id: The stable identity used for Panel-menu routing and reload-state retention.
Parameter title: The visible dockable-window title.
Parameter order: The stable panel and generated Panel-menu ordering value.
Parameter defaultOpen: Whether a newly discovered panel is visible before retained state is available.
Parameter menuPath: The optional slash-delimited category path under the generated Panel menu.
Parameter separatorBefore: Whether the generated toggle is preceded by a separator within its final menu category.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentException: Thrown when id or title is empty, or when menuPath contains an empty segment.