# Panels class

Namespace: [Rhino.UI](https://developer.rhino3d.com/api/rhinocommon/namespace/rhino.ui.md) · Assembly: [RhinoCommon](https://developer.rhino3d.com/api/rhinocommon/assembly/rhinocommon.md)

```cs
public static class Panels
```

Access to Rhino panels and register custom panels

## Properties

- [EtoPanelStyleName](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.panels/etopanelstylename.md): (static) Style applied to Eto controls hosted by the Rhino.UI.Panels and Rhino.UI.ObjectProperties systems.
- [IconSize](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.panels/iconsize.md): (static) Gets the panel icon size in logical units.
- [IconSizeInPixels](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.panels/iconsizeinpixels.md): (static) Gets the panel icon size in pixels.
- [ScaledIconSize](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.panels/scalediconsize.md): (static) Gets the panel icon size in pixels with DPI scaling applied.

## Methods

- [ChangePanelIcon](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.panels/changepanelicon.md): (2 overloads, static) Update the icon used for a panel tab.
- [ClosePanel](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.panels/closepanel.md): (4 overloads, static) Will close or hide the specified panel type, in Windows Rhino, if it is the only visible tab the tab dock bar will be closed as well. In Mac Rhino it will always close the modeless dialog hosting the panel.
- [DockBarIdInUse](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.panels/dockbaridinuse.md): (static) For internal use, call this method to see if a dock bar Id is currently being used by any Rhino dock bar. Rhino
- [FloatPanel](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.panels/floatpanel.md): (2 overloads, static) Mac support: Display the specified panel in a floating window on Mac, the floating window will only contain the specified panel. Windows support: On Windows this will show or hide the floating container containing the specified panel. If the tab is docked with other tabs it will be floated in a new container.
- [GetOpenPanelIds](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.panels/getopenpanelids.md): (static) Get a list of the currently open panel tabs in Windows Rhino, on Mac Rhino it will be a list of the currently visible modeless panel dialogs.
- [GetPanel](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.panels/getpanel.md): (6 overloads, static) Will return an instance of a .Net panel if the panel has been displayed at least once. Panel instances are not created until a panel is displayed.
- [GetPanels](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.panels/getpanels.md): (4 overloads, static) Gets the panels.
- [IsHiding](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.panels/ishiding.md): (static) Check to see if reason is equal to any of the show events
- [IsPanelVisible](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.panels/ispanelvisible.md): (4 overloads, static) Check to see if a panel is currently visible, if isSelectedTab is true then the tab must be the active tab as well.
- [IsShowing](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.panels/isshowing.md): (static) Check to see if reason is equal to any of the hide events
- [OnClosePanel](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.panels/onclosepanel.md): (static) Call this method to raise the Closed event
- [OnShowPanel](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.panels/onshowpanel.md): (static) Call this method to raise the Show event
- [OpenPanel](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.panels/openpanel.md): (8 overloads, static) In Mac Rhino this will just call the version of OpenPanel that takes a class type Id. In Windows Rhino this will look for a dock bar with the specified Id and open or move the specified panel to that dock bar.
- [OpenPanelAsSibling](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.panels/openpanelassibling.md): (2 overloads, static) In Mac Rhino this will currently just call OpenPanel, in Windows Rhino this will look for a dock bar which contains the sibling panel and add this panel to that dock bar as necessary, if the panel was in another dock bar it will be moved to this dock bar.
- [PanelDockBar](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.panels/paneldockbar.md): (2 overloads, static) Will always return Guid.Empty in Mac Rhino. In Windows Rhino it will look for the dock bar which contains the specified panel class Id and return the dock bar Id.
- [PanelDockBars](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.panels/paneldockbars.md): (static) Will always return a empty array in Mac Rhino. In Windows Rhino it will look for any panel dock bars that contain the specified panel class Id and return the dock bar Id's.
- [RegisterPanel](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.panels/registerpanel.md): (3 overloads, static) You typically register your panel class in your plug-in's OnLoad function. This will register your custom call with Rhino, Rhino will create an instance of your class the first time your panel is created and embed this instance of your class in a panel container.

## Events

- [Closed](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.panels/closed.md): (static) This event is raised when a panel host is closed
- [Show](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.panels/show.md): (static) This event is called when a panel is shown or hidden. This event will get raised multipThis times when the active document changes in Mac Rhino. It will called with show equal to false for the previous active document and with show equal to true for the current document. When the event is raised with show equal to false it only means the document instance of the panel is not visible it does not mean the panel host has been closed. If you need to know when the panel host closes then subscribe to the Closed event.
