Synced
EditorToolbarItemAttribute.Constructor
Section titled “EditorToolbarItemAttribute.Constructor”
- Creates a toolbar placement for the annotated targetless action.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Editor.Interactions
Scope: Editor
Declaration
Section titled “Declaration”public InnoEditor.Interactions.EditorToolbarItemAttribute.EditorToolbarItemAttribute(string area, InnoEditor.Interactions.EditorToolbarIcon icon, string tooltip, int order = 0, InnoEditor.Interactions.EditorToolbarIcon activeIcon = InnoEditor.Interactions.EditorToolbarIcon.None)Parameters
Section titled “Parameters”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.
Exceptions
Section titled “Exceptions”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.