Synced
EditorMenuBuilder.Add
Section titled “EditorMenuBuilder.Add”
- Adds a dynamic action placement to the menu currently being constructed.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Editor.Interactions
Scope: Editor
Declaration
Section titled “Declaration”public void InnoEditor.Interactions.EditorMenuBuilder.Add(string path, string actionId, int order = 0, bool separatorBefore = false, object? argument = null)Parameters
Section titled “Parameters”Parameter path: The slash-delimited path used to create parent menus and the leaf label.
Parameter actionId: The stable action identifier invoked by the leaf.
Parameter order: The stable ordering value among sibling placements.
Parameter separatorBefore: Whether a visual separator should precede the leaf placement.
Parameter argument: An optional argument captured for this menu generation.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentException: Thrown when path or actionId is empty.