C# Class SourceGrid.GridSubPanelBase

Inheritance: System.Windows.Forms.UserControl
Exibir arquivo Open project: zhuangyy/Motion

Private Properties

Property Type Description

Public Methods

Method Description
GridSubPanelBase ( GridVirtual gridContainer, GridSubPanelType containerType ) : System

Constructor

PointGridToPanel ( Point p_GridPoint ) : Point

Convert a grid relative point to a panel relative point

PointPanelToGrid ( Point p_PanelPoint ) : Point

Convert a panel relative point to a grid relative point

RectangleGridToPanel ( Rectangle p_GridRectangle ) : Rectangle

Converts a grid coordinate rectangle to Panel coordinate rectangle

RectanglePanelToGrid ( Rectangle p_PanelRectangle ) : Rectangle

Converts a panel coordinate rectangle to Grid coordinate rectangle

Protected Methods

Method Description
IsInputChar ( char charCode ) : bool

IsInputChar method.

IsInputKey ( Keys keyData ) : bool

Allow the grid to handle specials keys like Arrows and Tab. See also Grid.SpecialKeys

OnClick ( EventArgs e ) : void
OnDoubleClick ( EventArgs e ) : void
OnDragDrop ( DragEventArgs drgevent ) : void
OnDragEnter ( DragEventArgs drgevent ) : void
OnDragLeave ( EventArgs e ) : void
OnDragOver ( DragEventArgs drgevent ) : void
OnGiveFeedback ( System.Windows.Forms.GiveFeedbackEventArgs gfbevent ) : void
OnKeyDown ( KeyEventArgs e ) : void
OnKeyPress ( KeyPressEventArgs e ) : void
OnKeyUp ( KeyEventArgs e ) : void
OnMouseDown ( MouseEventArgs e ) : void
OnMouseEnter ( EventArgs e ) : void
OnMouseHover ( EventArgs e ) : void
OnMouseLeave ( EventArgs e ) : void
OnMouseMove ( MouseEventArgs e ) : void
OnMouseUp ( MouseEventArgs e ) : void
OnPaint ( PaintEventArgs e ) : void

Method Details

GridSubPanelBase() public method

Constructor
public GridSubPanelBase ( GridVirtual gridContainer, GridSubPanelType containerType ) : System
gridContainer GridVirtual
containerType GridSubPanelType
return System

IsInputChar() protected method

IsInputChar method.
protected IsInputChar ( char charCode ) : bool
charCode char
return bool

IsInputKey() protected method

Allow the grid to handle specials keys like Arrows and Tab. See also Grid.SpecialKeys
protected IsInputKey ( Keys keyData ) : bool
keyData Keys
return bool

OnClick() protected method

protected OnClick ( EventArgs e ) : void
e System.EventArgs
return void

OnDoubleClick() protected method

protected OnDoubleClick ( EventArgs e ) : void
e System.EventArgs
return void

OnDragDrop() protected method

protected OnDragDrop ( DragEventArgs drgevent ) : void
drgevent System.Windows.Forms.DragEventArgs
return void

OnDragEnter() protected method

protected OnDragEnter ( DragEventArgs drgevent ) : void
drgevent System.Windows.Forms.DragEventArgs
return void

OnDragLeave() protected method

protected OnDragLeave ( EventArgs e ) : void
e System.EventArgs
return void

OnDragOver() protected method

protected OnDragOver ( DragEventArgs drgevent ) : void
drgevent System.Windows.Forms.DragEventArgs
return void

OnGiveFeedback() protected method

protected OnGiveFeedback ( System.Windows.Forms.GiveFeedbackEventArgs gfbevent ) : void
gfbevent System.Windows.Forms.GiveFeedbackEventArgs
return void

OnKeyDown() protected method

protected OnKeyDown ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs
return void

OnKeyPress() protected method

protected OnKeyPress ( KeyPressEventArgs e ) : void
e System.Windows.Forms.KeyPressEventArgs
return void

OnKeyUp() protected method

protected OnKeyUp ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs
return void

OnMouseDown() protected method

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

OnMouseEnter() protected method

protected OnMouseEnter ( EventArgs e ) : void
e System.EventArgs
return void

OnMouseHover() protected method

protected OnMouseHover ( EventArgs e ) : void
e System.EventArgs
return void

OnMouseLeave() protected method

protected OnMouseLeave ( EventArgs e ) : void
e System.EventArgs
return void

OnMouseMove() protected method

protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
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

PointGridToPanel() public method

Convert a grid relative point to a panel relative point
public PointGridToPanel ( Point p_GridPoint ) : Point
p_GridPoint Point
return Point

PointPanelToGrid() public method

Convert a panel relative point to a grid relative point
public PointPanelToGrid ( Point p_PanelPoint ) : Point
p_PanelPoint Point
return Point

RectangleGridToPanel() public method

Converts a grid coordinate rectangle to Panel coordinate rectangle
public RectangleGridToPanel ( Rectangle p_GridRectangle ) : Rectangle
p_GridRectangle System.Drawing.Rectangle
return System.Drawing.Rectangle

RectanglePanelToGrid() public method

Converts a panel coordinate rectangle to Grid coordinate rectangle
public RectanglePanelToGrid ( Rectangle p_PanelRectangle ) : Rectangle
p_PanelRectangle System.Drawing.Rectangle
return System.Drawing.Rectangle