Adds a Ribbon item to the panel.
Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
C#
public RibbonItem AddItem( RibbonItemData itemData )
Parameters
- itemData RibbonItemData
- Data containing information about the new item.
Return Value
RibbonItemThe added Ribbon item.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown when itemData is null. |
ArgumentException | Thrown when an item with the itemData.Name already exists in the panel or the data is not of the correct type. |