Panels.GetPanel Method (Guid, RhinoDoc)
Click or drag to resize

PanelsGetPanel Method (Guid, RhinoDoc)

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.

Namespace:  Rhino.UI
Assembly:  RhinoCommon (in RhinoCommon.dll)
public static Object GetPanel(
	Guid panelId,
	RhinoDoc rhinoDoc


Type: SystemGuid
Class Id of the panel to search for.
Type: RhinoRhinoDoc
Runtime document Id associated with the requested panel.

Return Value

Type: Object
Returns the one and only instance of a panel if it has been properly registered and displayed at least once. If the panel has never been displayed then null will be returned even if the panel is properly registered.
Version Information

Rhino for Windows

Supported in: 6.7
See Also