Class KeyShortcut
KeyShortcut renderable
Inheritance
object
KeyShortcut
Implements
Namespace: Terminaux.Writer.CyclicWriters
Assembly: Terminaux.dll
Syntax
public class KeyShortcut : IStaticRenderable
Constructors
| Edit this page View SourceKeyShortcut()
Makes a new instance of the KeyShortcut 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 KeyShortcut segment group
Declaration
public string Render()
Returns
Type | Description |
---|---|
string | Rendered KeyShortcut text that will be used by the renderer |