Synced
IUiBackend.SetClass
Section titled “IUiBackend.SetClass”
- Activates or deactivates one element class.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.UI
Declaration
Section titled “Declaration”bool Inno.UI.IUiBackend.SetClass(Inno.UI.UiContextHandle context, Inno.UI.UiDocumentHandle document, string elementId, string className, bool active)Parameters
Section titled “Parameters”Parameter context: The context that owns the requested document or state.
Parameter document: The document owned by the supplied context.
Parameter elementId: The target document element ID.
Parameter className: CSS class name to toggle.
Parameter active: Whether the CSS class is enabled.
Returns
Section titled “Returns”True when the element exists and its class state was assigned; false when the element is absent. This is not a comparison with the preceding state.