C# Class PowerArgs.Cli.RichTextEditor

Inheritance: ObservableObject
Show file Open project: adamabdelhamed/PowerArgs Class Usage Examples

Private Properties

Property Type Description
DoSyntaxHighlighting void
FireValueChanged void
WriteCharacterForPressedKey void

Public Methods

Method Description
Clear ( ) : void
RegisterHandler ( IKeyHandler handler ) : void

Lets you register a custom key handler. You are responsible for ensuring that each key is only handled by one handler. This method will throw if you try to add a duplicate key handler.

RegisterKeyPress ( ConsoleKeyInfo key ) : void
RichTextEditor ( ) : System

Private Methods

Method Description
DoSyntaxHighlighting ( RichCommandLineContext context ) : void
FireValueChanged ( ) : void
WriteCharacterForPressedKey ( ConsoleKeyInfo key ) : void

Method Details

Clear() public method

public Clear ( ) : void
return void

RegisterHandler() public method

Lets you register a custom key handler. You are responsible for ensuring that each key is only handled by one handler. This method will throw if you try to add a duplicate key handler.
public RegisterHandler ( IKeyHandler handler ) : void
handler IKeyHandler The handler to register
return void

RegisterKeyPress() public method

public RegisterKeyPress ( ConsoleKeyInfo key ) : void
key System.ConsoleKeyInfo
return void

RichTextEditor() public method

public RichTextEditor ( ) : System
return System