MoveViewPortKeyboardHandler Class
Definition
Section titled “Definition”Moves the view of an IScreenSurface with a set of specified keyboard keys.
public class MoveViewPortKeyboardHandler : KeyboardConsoleComponent, IComponentInheritance object → KeyboardConsoleComponent
Implements IComponent
Constructors
Section titled “Constructors”MoveViewPortKeyboardHandler()
Section titled “MoveViewPortKeyboardHandler()”Creates this handler with the arrow keys.
public MoveViewPortKeyboardHandler()MoveViewPortKeyboardHandler(Keys, Keys, Keys, Keys)
Section titled “MoveViewPortKeyboardHandler(Keys, Keys, Keys, Keys)”Creates this handler with the specified keys.
public MoveViewPortKeyboardHandler(Keys left, Keys right, Keys up, Keys down)Parameters
Section titled “Parameters”left Keys
The key to move left.
right Keys
The key to move right.
up Keys
The key to move up.
down Keys
The key to move down.
Properties
Section titled “Properties”The key to move left.
public Keys Left { get; set; }The key to move right.
public Keys Right { get; set; }The key to move up.
public Keys Up { get; set; }The key to move down.
public Keys Down { get; set; }Methods
Section titled “Methods”OnAdded(IScreenObject)
Section titled “OnAdded(IScreenObject)”Called when the component is added to a host.
public override void OnAdded(IScreenObject console)Parameters
Section titled “Parameters”console IScreenObject
ProcessKeyboard(IScreenObject, Keyboard, out bool)
Section titled “ProcessKeyboard(IScreenObject, Keyboard, out bool)”Called by a host when the keyboard is being processed.
public override void ProcessKeyboard(IScreenObject consoleObject, Keyboard info, out bool handled)Parameters
Section titled “Parameters”consoleObject IScreenObject
info Keyboard
handled bool
When set to true informs the host caller that we handled the mouse and to stop others from handling.