Table of Contents

Method DrawHotString

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

DrawHotString(ustring, Attribute, Attribute)

Utility function to draw strings that contain a hotkey.

public void DrawHotString(ustring text, Attribute hotColor, Attribute normalColor)

Parameters

text ustring

String to display, the hotkey specifier before a letter flags the next letter as the hotkey.

hotColor Attribute

Hot color.

normalColor Attribute

Normal color.

Remarks

The hotkey is any character following the hotkey specifier, which is the underscore ('_') character by default.

The hotkey specifier can be changed via HotKeySpecifier

DrawHotString(ustring, bool, ColorScheme)

Utility function to draw strings that contains a hotkey using a ColorScheme and the "focused" state.

public void DrawHotString(ustring text, bool focused, ColorScheme scheme)

Parameters

text ustring

String to display, the underscore before a letter flags the next letter as the hotkey.

focused bool

If set to true this uses the focused colors from the color scheme, otherwise the regular ones.

scheme ColorScheme

The color scheme to use.