© 2010 Autodesk
Introduction to Revit 2011 API
Ribbon API
Classes
§RibbonPanel
§A ribbon panel in the Add-Ins/Analyze tab
§A panel contains a number of ribbon items or buttons
§RibbonItem
§A button, push or pull-down, ComboBox, TextBox, RadioButton, etc
§PushButton, PushButtonData
§Manage push button information
§PulldownButton, PulldownButtonData
§Manage pull-down button information
§SplitButton, SplitButtonData
§Manage split button information
§ComboBox, ComboBoxData
§Manage combo box information
§…
§
The RibbonItem object represents an item on RibbonPanel, can be a push-button or a pull-down which should contain the information for creating one RibbonItem.

Each ribbon control has two classes associated with it – one derived from RibbonItemData that is used to create the control (i.e. SplitButtonData) and add it to a ribbon panel and one derived from RibbonItem (i.e. SplitButton) which represents the item after it is added to a panel. The properties available from RibbonItemData (and the derived classes) are also available from RibbonItem (and the corresponding derived classes). These properties can be set prior to adding the control to the panel or can be set using the RibbonItem class after it has been added to the panel.