Panel Panel()
Panel Panel( string classname )

book_4_sparkGenerated
code_blocksInput

Description

The Panel method in the PanelCreator struct is used to add a new blank panel as a child to the existing panel. This method is part of the Sandbox.UI.Construct namespace and provides a straightforward way to create and manage UI panels within the s&box environment.

Usage

To use the Panel method, you need to have an instance of the PanelCreator struct. Once you have this instance, you can call the Panel method to create a new blank panel. This panel will be added as a child to the existing panel managed by the PanelCreator.

Example

// Assuming 'panelCreator' is an instance of PanelCreator
Sandbox.UI.Panel newPanel = panelCreator.Panel();

// 'newPanel' is now a blank panel added as a child to the existing panel.