Class

# WebCSSClasses

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

## Description

Used to add and remove [Bootstrap CSS classes](https://getbootstrap.com/docs/5.3/getting-started/introduction/) to and from a `WebUIControl</api/user_interface/web/webuicontrol>` at runtime.

## Methods

<div class="rst-class">

table-centered_column_4

</div>

| Name                           | Parameters                               | Returns                            | Shared |
|--------------------------------|------------------------------------------|------------------------------------|--------|
| `Add<webcssclasses.add>`       | name As `String</api/data_types/string>` |                                    |        |
| `Has<webcssclasses.has>`       | name As `String</api/data_types/string>` | `Boolean</api/data_types/boolean>` |        |
| `Remove<webcssclasses.remove>` | name As `String</api/data_types/string>` |                                    |        |

## Method descriptions

<div id="webcssclasses.add">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

WebCSSClasses.Add

**Add**(name As `String</api/data_types/string>`)

> Adds the CSS class to the <span class="title-ref">WebCSSClasses</span> object.

<div id="webcssclasses.has">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

WebCSSClasses.Has

**Has**(name As `String</api/data_types/string>`) As `Boolean</api/data_types/boolean>`

> Returns `True</api/language/true>` if CSS class *name* passed has already been added to the <span class="title-ref">WebCSSClasses</span> object.

<div id="webcssclasses.remove">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

WebCSSClasses.Remove

**Remove**(name As `String</api/data_types/string>`)

> Removes the CSS class to the <span class="title-ref">WebCSSClasses</span> object.

## Compatibility

|                       |     |
|-----------------------|-----|
| **Project Types**     | Web |
| **Operating Systems** | All |

<div class="seealso">

`Object</api/data_types/additional_types/object>` parent class; `WebUIControl<webuicontrol.cssclasses>` method, [Bootstrap CSS classes](https://getbootstrap.com/docs/5.3/getting-started/introduction/)

</div>
