Table of Contents

Constructor StatusItem

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

StatusItem(Key, ustring, Action, Func<bool>)

Initializes a new StatusItem.

public StatusItem(Key shortcut, ustring title, Action action, Func<bool> canExecute = null)

Parameters

shortcut Key

Shortcut to activate the StatusItem.

title ustring

Title for the StatusItem.

action Action

Action to invoke when the StatusItem is activated.

canExecute Func<bool>

Function to determine if the action can currently be executed.