# GH_RibbonPanel class

Namespace: [Grasshopper.GUI.Ribbon](https://developer.rhino3d.com/api/gh1/namespace/grasshopper.gui.ribbon.md) · Assembly: [Grasshopper](https://developer.rhino3d.com/api/gh1/assembly/grasshopper.md)

```cs
public sealed class GH_RibbonPanel : GH_RibbonContentBase, IGH_RibbonInteractiveObject, IComparable<GH_RibbonPanel>
```

## Constructors

- [GH_RibbonPanel](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-ribbonpanel/ctor.md): (2 overloads)

## Properties

- [AllItems](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-ribbonpanel/allitems.md): Gets the internal collection of items.
- [Name](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-ribbonpanel/name.md): Gets or sets the name of the panel.
- [Owner](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-ribbonpanel/owner.md): Gets or sets the owner control for this panel.
- [VisibleItems](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-ribbonpanel/visibleitems.md): Gets all items currently visible on the panel.

## Methods

- [AddItem](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-ribbonpanel/additem.md): Adds a new item to the content.
- [CollapseLastColumn](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-ribbonpanel/collapselastcolumn.md): Removes the rightmost column
- [CollapseLeastSignificantColumn](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-ribbonpanel/collapseleastsignificantcolumn.md): Removes the rightmost column that features only Obscure items.
- [CompareTo](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-ribbonpanel/compareto.md)
- [Contains](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-ribbonpanel/contains.md): Checks to see whether a specific id/exposure combination is already present in this panel.
- [DesiredHeight](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-ribbonpanel/desiredheight.md): Calculates the desired height of the panel based on a given height.
- [DisplayDropdown](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-ribbonpanel/displaydropdown.md): (2 overloads)
- [DisplayTooltip](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-ribbonpanel/displaytooltip.md)
- [IndexAt](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-ribbonpanel/indexat.md): Returns the index of the item that contains the location
- [ItemAt](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-ribbonpanel/itemat.md): (2 overloads) Returns the item at the specified index in the item list.
- [MinimumWidth](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-ribbonpanel/minimumwidth.md): Gets the minimum width of a panel (a single column of items)
- [MouseClick](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-ribbonpanel/mouseclick.md)
- [MouseDoubleClick](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-ribbonpanel/mousedoubleclick.md)
- [MouseDown](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-ribbonpanel/mousedown.md)
- [MouseMove](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-ribbonpanel/mousemove.md)
- [MouseUp](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-ribbonpanel/mouseup.md)
- [MoveTo](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-ribbonpanel/moveto.md): Move the panel and all content to a new location.
- [PanelBarRegion](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-ribbonpanel/panelbarregion.md): Computes the panel bar region.
- [PerformLayout](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-ribbonpanel/performlayout.md): Performs a tight-fit stacking of all content items. All items will be layed out and the panel Region will be adjusted to match.
- [RemoveItem](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-ribbonpanel/removeitem.md): Removes an item from the content
- [RenderPanel](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-ribbonpanel/renderpanel.md): Renders the panel and all the items to the graphics context
- [RibbonFont](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-ribbonpanel/ribbonfont.md): Returns the font which is used to draw the panel bar tag
- [Sort](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-ribbonpanel/sort.md): Sorts items on the panel.

## Inherited Members

- From [GH_RibbonContentBase](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-ribboncontentbase.md): [Region](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-ribboncontentbase/region.md), [ClientRegion](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-ribboncontentbase/clientregion.md), [ContentRegion](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-ribboncontentbase/contentregion.md), [Margin](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-ribboncontentbase/margin.md), [Padding](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-ribboncontentbase/padding.md), [Visible](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-ribboncontentbase/visible.md), [Contains](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-ribboncontentbase/contains.md)
