# Sandbox.UI.StyleBlock

A CSS rule - ie ".chin { width: 100%; height: 100%; }"

- Kind: class
- Namespace: `Sandbox.UI`
- Assembly: `Sandbox.Engine`
- Modifiers: sealed

## Constructors

- [`StyleBlock`](/api/Sandbox.UI.StyleBlock/.ctor)

## Fields

- [`Styles`](/api/Sandbox.UI.StyleBlock/Styles): The styles that are defined in this block

## Properties

- [`AbsolutePath`](/api/Sandbox.UI.StyleBlock/AbsolutePath): The absolute on disk filename for this style block (or null if not on disk)
- [`FileLine`](/api/Sandbox.UI.StyleBlock/FileLine): The line in the file containing this style block
- [`FileName`](/api/Sandbox.UI.StyleBlock/FileName): The filename of the file containing this style block (or null if none)
- [`Selectors`](/api/Sandbox.UI.StyleBlock/Selectors): A list of appropriate selectors for this block (ie ".button")
- [`SelectorStrings`](/api/Sandbox.UI.StyleBlock/SelectorStrings): A list of selectors for this block

## Methods

- [`GetRawValues`](/api/Sandbox.UI.StyleBlock/GetRawValues): Get the list of raw style values
- [`SetRawValue`](/api/Sandbox.UI.StyleBlock/SetRawValue): Update a raw style value
- [`SetSelector`](/api/Sandbox.UI.StyleBlock/SetSelector)
- [`Test`](/api/Sandbox.UI.StyleBlock/Test): Test whether target passes our selector tests. We use forceFlag to do alternate tests for flags like ::before and ::after. It's basically added to the target's pseudo class list for the test.
- [`TestBroadphase`](/api/Sandbox.UI.StyleBlock/TestBroadphase): Tests a few broadphase conditions to build a list of feasible styleblocks tailored for a panel.
