void SetClass( string classname, bool active )

robot_2Generated
code_blocksInput

Description

The SetClass method allows you to set a specific CSS class as active or inactive on a Panel object. This is useful for dynamically changing the appearance of UI elements based on certain conditions or interactions.

Usage

To use the SetClass method, call it on an instance of a Panel and pass the name of the CSS class you want to modify, along with a boolean value indicating whether the class should be active (true) or inactive (false).

Example

// Example of using SetClass method
Panel myPanel = new Panel();

// Activate the 'highlight' class
myPanel.SetClass("highlight", true);

// Deactivate the 'highlight' class
myPanel.SetClass("highlight", false);