Table of Contents

Method ReplaceHotKeyWithTag

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

ReplaceHotKeyWithTag(string, int)

Replaces the Rune at the index specified by the hotPos parameter with a tag identifying it as the hotkey.

public static string ReplaceHotKeyWithTag(string text, int hotPos)

Parameters

text string

The text to tag the hotkey in.

hotPos int

The Rune index of the hotkey in text.

Returns

string

The text with the hotkey tagged.

Remarks

The returned string will not render correctly without first un-doing the tag. To undo the tag, search for