API ReferenceSandbox.UI
public sealed struct Sandbox.UI.StyleSheetCollection
A collection of `Sandbox.UI.StyleSheet` objects applied directly to a panel. See `Sandbox.UI.Panel.StyleSheet`.
Methods
Showing 6 methods
public void Add(Sandbox.UI.StyleSheet sheet)
Add a stylesheet directly
public System.Collections.Generic.IEnumerable`1<System.ValueTuple`2<string,string>> CollectVariables()
Returns all CSS variables from the owning panel and its ancestors.
public void Load(string filename, bool inheritVariables = True, bool failSilently = False)
Load the stylesheet from a file.
Parameters
inheritVariables: Default: TruefailSilently: Default: False
public void Parse(string stylesheet, bool inheritVariables = True)
Load the stylesheet from a string.
Parameters
inheritVariables: Default: True
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox.UI |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.UI.StyleSheetCollection |