Fields
m_focus_item
#protected GH_RibbonItem m_focus_item
Properties
ActiveObject
#Gets or sets the Active object. The active object can be any class which implements the IGH_RibbonInteractiveObject interface. Under normal circumstances it will most likely be a RibbonItem or a class derived from RibbonItem.
ActiveTabIndex
#Gets or sets the current tab index.
Remarks: Invalid indices will result in exceptions
Returns: The index of the first active tab or -1 if no active tab can be found
Tabs
#Gets the tabs collection.
Remarks: Do not modify this collection, use AddTab, RemoveTab... methods instead
Methods
FindAndDisplayProxy
#public bool FindAndDisplayProxy(Guid id, ref Rectangle tabBox, ref Rectangle iconbox, ref GH_RibbonDropdown dropdown)
Iterates over all tabs and panels to try and find the icon with the associated proxy id.
Parameters:
| id (Guid) | ID of proxy to search for. |
| tabBox (ref Rectangle) | The tab rectangle (in screen space). |
| iconbox (ref Rectangle) | The icon rectangle (in screen space). |
| dropdown (ref GH_RibbonDropdown) | The dropdown window if shown. |
Returns: Rectangle of proxy icon or Rectangle.Empty if the icon could not be found. Rectangle is defined in screen coordinates, not control coordinates.
LayoutRibbon
#public void LayoutRibbon()
NearestHeight
#Parameters:
| initialHeight (int) |
Implements: NearestHeight
PopulateRibbon
#public void PopulateRibbon()
Populate the entire Ribbon control from scratch. Call this function when you make a change to the state of the component library or ribbon layouts.