API ReferenceSandbox.UI
public class Sandbox.UI.StyleSheet
Related Guides
Broader workflow and conceptual references connected to this API.
Constructors
Showing 1 constructors
public StyleSheet()
No results match this filter.
Methods
Showing 9 methods
public static Sandbox.UI.StyleSheet FromFile(string filename, System.Collections.Generic.IEnumerable`1<System.ValueTuple`2<string,string>> variables = null, bool failSilently = False)
Parameters
variables: Default: nullfailSilently: Default: False
public static Sandbox.UI.StyleSheet FromString(string styles, string filename = none, System.Collections.Generic.IEnumerable`1<System.ValueTuple`2<string,string>> variables = null)
Parameters
filename: Default: nonevariables: Default: null
public Sandbox.UI.MixinDefinition GetMixin(string name)
Get a mixin by name or null if not found.
public string GetVariable(string name, string defaultValue = null)
Parameters
defaultValue: Default: null
public void Release()
Releases the filesystem watcher so we won't get file changed events.
public string ReplaceVariables(string str)
public void SetMixin(Sandbox.UI.MixinDefinition mixin)
Register a mixin definition.
public bool TryGetMixin(string name, Sandbox.UI.MixinDefinition mixin)
Try to get a mixin by name.
No results match this filter.
Properties
Showing 4 properties
public string Sandbox.UI.StyleSheet.FileName { get; set; }
public System.Collections.Generic.List`1<string> Sandbox.UI.StyleSheet.IncludedFiles { get; set; }
public static System.Collections.Generic.List`1<Sandbox.UI.StyleSheet> Sandbox.UI.StyleSheet.Loaded { get; set; }
public System.Collections.Generic.List`1<Sandbox.UI.StyleBlock> Sandbox.UI.StyleSheet.Nodes { get; set; }
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox.UI |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.UI.StyleSheet |