Skip to content
API referenceDevelopmentEditor scriptingEngine ccf7d03f
Synced
  • Adds a dynamic action placement to the menu currently being constructed.

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

public void InnoEditor.Interactions.EditorMenuBuilder.Add(string path, string actionId, int order = 0, bool separatorBefore = false, object? argument = null)

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.

Exception T:System.ArgumentException: Thrown when path or actionId is empty.