s&box docs
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: True
  • failSilently: Default: False

public void Parse(string stylesheet, bool inheritVariables = True)

Load the stylesheet from a string.

Parameters

  • inheritVariables: Default: True

Metadata

FieldValue
NamespaceSandbox.UI
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.UI.StyleSheetCollection

On this page