The HasClass
method checks if a specific CSS class is present on the panel associated with this PanelComponent
. It returns a boolean value indicating the presence of the class.
The HasClass
method checks if a specific CSS class is present on the panel associated with this PanelComponent
. It returns a boolean value indicating the presence of the class.
To use the HasClass
method, call it on an instance of PanelComponent
and pass the name of the class you want to check as a string parameter. The method will return true
if the class is present, and false
otherwise.
// Example of using HasClass method PanelComponent panelComponent = new PanelComponent(); // Check if the panel has the class "active" bool hasActiveClass = panelComponent.HasClass("active"); if (hasActiveClass) { // Do something if the class is present // e.g., log, modify UI, etc. }