Preset<T>

References
public sealed class Preset<T> : IPreset
Strongly typed preset.
T

Constructors

Preset

#
public Preset(string name, string info, Color? colour, T value)
name (string)
info (string)
colour (Color?)
value (T)

Preset

#
public Preset(string name, string info, T value)
name (string)
info (string)
value (T)

Preset

#
public Preset(string name, T value)
Create a new preset.
name (string)Name of preset. If the name contains a double colon, the part before the colon becomes the category.
value (T)Value of preset.

Properties

Category

#
public string Category { get; }
Preset category. May be null or empty, in which case the preset does not belong to any special category.
Category
Explicit

IPreset.Value

#
Value

Info

#
public string Info { get; }
Detailed description of preset. May be null or empty.
Info

Name

#
public string Name { get; }
Name of preset. Guaranteed to not be a empty string.
Name

Tint

#
public Color? Tint { get; }
Optional colour override for preset.
Tint

Value

#
public T Value { get; }
Value of preset.