Method GetHotKeySpecifierLength | Terminal.Gui v2 (original) (raw)

Namespace

Terminal.Gui

Assembly

Terminal.Gui.dll

GetHotKeySpecifierLength(bool)

Gets the width or height of the HotKeySpecifier characters in the Text property.

public int GetHotKeySpecifierLength(bool isWidth = true)

Parameters

isWidth bool

If true (the default) the width required for the HotKey specifier is returned. Otherwise, the height is returned.

Returns

int

The number of characters required for the HotKeySpecifier. If the text direction specified by TextDirection does not match the isWidth parameter, 0 is returned.