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)
Since: 6.0
Syntax
public static Object GetPanel(
	Guid panelId,
	RhinoDoc rhinoDoc
)

Parameters

panelId
Type: SystemGuid
Class Id of the panel to search for.
rhinoDoc
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.
See Also