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

API: engine
Project: Inno.Editor.Interactions

public Inno.Editor.Interactions.EditorToolbarItemAttribute.EditorToolbarItemAttribute(string area, Inno.Editor.Interactions.EditorToolbarIcon icon, string tooltip, int order = 0, Inno.Editor.Interactions.EditorToolbarIcon activeIcon = Inno.Editor.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:Inno.Editor.Interactions.EditorToolbarIcon.None to retain icon.

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

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