Class KeyShortcut
KeyShortcut renderable
Namespace: Terminaux.Writer.CyclicWriters.Simple
Assembly: Terminaux.dll
Syntax
public class KeyShortcut : SimpleCyclicWriter
Constructors
| Edit this page View SourceKeyShortcut()
Makes a new instance of the key shortcut renderer
Declaration
public KeyShortcut()
Properties
| Edit this page View SourceBackgroundColor
Background color
Declaration
public Color BackgroundColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
OptionBackgroundColor
Keybinding option key background color
Declaration
public Color OptionBackgroundColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
OptionColor
Keybinding option key color
Declaration
public Color OptionColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
OptionForegroundColor
Keybinding option key name color
Declaration
public Color OptionForegroundColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
Shortcut
Key binding
Declaration
public Keybinding? Shortcut { get; set; }
Property Value
Type | Description |
---|---|
Keybinding |
UseColors
Whether to use colors or not
Declaration
public bool UseColors { get; set; }
Property Value
Type | Description |
---|---|
bool |
Width
Width of the key shortcut
Declaration
public int Width { get; set; }
Property Value
Type | Description |
---|---|
int |
WriteLabel
Whether to write label or not
Declaration
public bool WriteLabel { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
| Edit this page View SourceRender()
Renders a key shortcut
Declaration
public override string Render()
Returns
Type | Description |
---|---|
string | Rendered text that will be used by the renderer |