# Sandbox.UI.PanelStyle

- Kind: class
- Namespace: `Sandbox.UI`
- Assembly: `Sandbox.Engine`
- Inherits: [Sandbox.UI.Styles](/api/Sandbox.UI.Styles)
- Modifiers: sealed

## Properties

- [`HasAfterElement`](/api/Sandbox.UI.PanelStyle/HasAfterElement): This style has a ::after element available. This is signalling to the panel system that if we apply this style, we should also create a ::after element.
- [`HasBeforeElement`](/api/Sandbox.UI.PanelStyle/HasBeforeElement): This style has a ::before element available. This is signalling to the panel system that if we apply this style, we should also create a ::before element.

## Methods

- [`Dirty`](/api/Sandbox.UI.PanelStyle/Dirty)
- [`Set`](/api/Sandbox.UI.PanelStyle/Set)
- [`SetBackgroundImage`](/api/Sandbox.UI.PanelStyle/SetBackgroundImage)
- [`SetBackgroundImageAsync`](/api/Sandbox.UI.PanelStyle/SetBackgroundImageAsync)
- [`SetRect`](/api/Sandbox.UI.PanelStyle/SetRect)
