C# Class Longkong.ColorPicker.Controls.HexTextBox

A specially designed textbox class that ensures that only HEX values are entered and displayed.
Inheritance: ColorSpaceComponentTextBox
Show file Open project: Longkong/Pojjaman Class Usage Examples

Private Properties

Property Type Description
HexTextBox System

Protected Methods

Method Description
IsInputChar ( char charCode ) : bool

Determines whether or not the specified character is to be designated for preprocessing or sent directly to the control.

OnKeyDown ( KeyEventArgs e ) : void

Preprocessing leading up to the raising of the KeyDown event.

Private Methods

Method Description
HexTextBox ( ) : System

Constructor. Sets the max length to 6 and the text property to an empty string.

Method Details

IsInputChar() protected method

Determines whether or not the specified character is to be designated for preprocessing or sent directly to the control.
protected IsInputChar ( char charCode ) : bool
charCode char The character to be evaluated.
return bool

OnKeyDown() protected method

Preprocessing leading up to the raising of the KeyDown event.
protected OnKeyDown ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs A KeyEventArgs containing the event data.
return void