C# Class UIAControls.TriColorControl

Mostra file Open project: TestStack/uia-custom-pattern-managed Class Usage Examples

Private Properties

Property Type Description
InitializeComponent void
RectFFromRect RectangleF
RectForValue Rectangle

Public Methods

Method Description
RectFromValue ( TriColorValue value ) : Rectangle

Find the rectangle (in client coordinates) for a given value

TriColorControl ( ) : System
ValueFromPoint ( Point ptClient, TriColorValue &value ) : bool

Find the value for a given point on the control

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnGotFocus ( EventArgs e ) : void
OnKeyUp ( KeyEventArgs e ) : void
OnLostFocus ( EventArgs e ) : void
OnMouseUp ( MouseEventArgs e ) : void
OnPaint ( PaintEventArgs e ) : void
OnSizeChanged ( EventArgs e ) : void
WndProc ( Message &m ) : void

Private Methods

Method Description
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

RectFFromRect ( Rectangle rect ) : RectangleF
RectForValue ( TriColorValue value ) : Rectangle

Find the rectangle corresponding to a given value

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

OnGotFocus() protected method

protected OnGotFocus ( EventArgs e ) : void
e EventArgs
return void

OnKeyUp() protected method

protected OnKeyUp ( KeyEventArgs e ) : void
e KeyEventArgs
return void

OnLostFocus() protected method

protected OnLostFocus ( EventArgs e ) : void
e EventArgs
return void

OnMouseUp() protected method

protected OnMouseUp ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnPaint() protected method

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
return void

OnSizeChanged() protected method

protected OnSizeChanged ( EventArgs e ) : void
e EventArgs
return void

RectFromValue() public method

Find the rectangle (in client coordinates) for a given value
public RectFromValue ( TriColorValue value ) : Rectangle
value TriColorValue
return Rectangle

TriColorControl() public method

public TriColorControl ( ) : System
return System

ValueFromPoint() public method

Find the value for a given point on the control
public ValueFromPoint ( Point ptClient, TriColorValue &value ) : bool
ptClient Point Point in client coordinates
value TriColorValue Value for point
return bool

WndProc() protected method

protected WndProc ( Message &m ) : void
m Message
return void