# Sandbox.UI.StyleSheetCollection

A collection of [Sandbox.UI.StyleSheet](/api/Sandbox.UI.StyleSheet) objects applied directly to a panel.
See [Sandbox.UI.Panel.StyleSheet](/api/Sandbox.UI.Panel/StyleSheet).

- Kind: struct
- Namespace: `Sandbox.UI`
- Assembly: `Sandbox.Engine`
- Modifiers: sealed

## Methods

- [`Add`](/api/Sandbox.UI.StyleSheetCollection/Add): Add a stylesheet directly
- [`AddInline`](/api/Sandbox.UI.StyleSheetCollection/AddInline): Add a stylesheet parsed from a string. The parsed sheet is cached under `key` and shared between all panels using the same key.
- [`CollectVariables`](/api/Sandbox.UI.StyleSheetCollection/CollectVariables): Returns all CSS variables from the owning panel and its ancestors.
- [`Load`](/api/Sandbox.UI.StyleSheetCollection/Load): Load the stylesheet from a file.
- [`Parse`](/api/Sandbox.UI.StyleSheetCollection/Parse): Load the stylesheet from a string.
- [`Remove`](/api/Sandbox.UI.StyleSheetCollection/Remove): Remove a specific [Sandbox.UI.StyleSheet](/api/Sandbox.UI.StyleSheet) from the collection.
