Class KeyShortcut
KeyShortcut renderable
Inheritance
Namespace
Syntax
public class KeyShortcut : SimpleCyclicWriter
Constructors
KeyShortcut()
Makes a new instance of the key shortcut renderer
Declaration
public KeyShortcut()
Properties
BackgroundColor
Background color
Property Value
Color
Declaration
public Color BackgroundColor { get; set; }
OptionBackgroundColor
Keybinding option key background color
Property Value
Color
Declaration
public Color OptionBackgroundColor { get; set; }
OptionColor
Keybinding option key color
Property Value
Color
Declaration
public Color OptionColor { get; set; }
OptionForegroundColor
Keybinding option key name color
Property Value
Color
Declaration
public Color OptionForegroundColor { get; set; }
Shortcut
Key binding
UseColors
Whether to use colors or not
Property Value
bool
Declaration
public bool UseColors { get; set; }
Width
Width of the key shortcut
Property Value
int
Declaration
public int Width { get; set; }
WriteLabel
Whether to write label or not
Property Value
bool
Declaration
public bool WriteLabel { get; set; }
Methods
Render()
Renders a key shortcut
Returns
string
Rendered text that will be used by the renderer
Declaration
public override string Render()