Table of Contents

Interface IInteractiveControl

Namespace
SharpConsoleUI.Controls
Assembly
SharpConsoleUI.dll

Represents a control that can receive keyboard input and be focused.

public interface IInteractiveControl

Properties

HasFocus

Gets or sets whether this control currently has keyboard focus.

bool HasFocus { get; set; }

Property Value

bool

IsEnabled

Gets or sets whether this control is enabled and can receive input.

bool IsEnabled { get; set; }

Property Value

bool

Methods

ProcessKey(ConsoleKeyInfo)

Processes a keyboard input event.

bool ProcessKey(ConsoleKeyInfo key)

Parameters

key ConsoleKeyInfo

The key information for the pressed key.

Returns

bool

True if the key was handled by this control; otherwise, false.