Skip to content
API referenceDevelopmentEditor scriptingEngine ccf7d03f
Synced
  • Creates a toolbar placement for the annotated targetless action.

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

public InnoEditor.Interactions.EditorToolbarItemAttribute.EditorToolbarItemAttribute(string area, InnoEditor.Interactions.EditorToolbarIcon icon, string tooltip, int order = 0, InnoEditor.Interactions.EditorToolbarIcon activeIcon = InnoEditor.Interactions.EditorToolbarIcon.None)

Parameter area: The exact interaction area whose toolbar receives the action.

Parameter icon: The symbol shown while the action is not checked.

Parameter tooltip: The fallback tooltip shown when the action has no contextual display name.

Parameter order: The stable ordering value within the toolbar.

Parameter activeIcon: The symbol shown while the action is checked, or F:InnoEditor.Interactions.EditorToolbarIcon.None to retain icon.

Exception T:System.ArgumentException: Thrown when area or tooltip is empty, or when icon is F:InnoEditor.Interactions.EditorToolbarIcon.None.

Exception T:System.ArgumentOutOfRangeException: Thrown when an icon value is not defined.