C# 클래스 ZForge.Controls.XPTable.Renderers.ButtonCellRenderer

A CellRenderer that draws Cell contents as Buttons
상속: CellRenderer
파일 보기 프로젝트 열기: zhuangyy/Motion

공개 메소드들

메소드 설명
ButtonCellRenderer ( ) : System

Initializes a new instance of the ButtonCellRenderer class with default settings

OnGotFocus ( CellFocusEventArgs e ) : void

Raises the GotFocus event

OnKeyDown ( CellKeyEventArgs e ) : void

Raises the KeyDown event

OnKeyUp ( CellKeyEventArgs e ) : void

Raises the KeyUp event

OnLostFocus ( CellFocusEventArgs e ) : void

Raises the LostFocus event

OnMouseDown ( CellMouseEventArgs e ) : void

Raises the MouseDown event

OnMouseEnter ( CellMouseEventArgs e ) : void

Raises the MouseEnter event

OnMouseLeave ( CellMouseEventArgs e ) : void

Raises the MouseLeave event

OnMouseMove ( CellMouseEventArgs e ) : void

Raises the MouseMove event

OnMouseUp ( CellMouseEventArgs e ) : void

Raises the MouseUp event

OnPaintCell ( PaintCellEventArgs e ) : void

Raises the PaintCell event

보호된 메소드들

메소드 설명
CalcButtonBounds ( ) : Rectangle

Returns a Rectangle that specifies the size and location of the button

CalcImageRect ( Image image, ContentAlignment imageAlignment ) : Rectangle

Returns a Rectangle that specifies the size and location of the buttons Image

DrawImage ( Graphics g, Image image, Rectangle imageRect, bool enabled ) : void

Draws the Image displayed on the button

GetButtonRendererData ( Cell cell ) : ButtonRendererData

Gets the ButtonCellRenderer specific data used by the Renderer from the specified Cell

OnPaint ( PaintCellEventArgs e ) : void

Raises the Paint event

OnPaintBackground ( PaintCellEventArgs e ) : void

Raises the PaintBackground event

메소드 상세

ButtonCellRenderer() 공개 메소드

Initializes a new instance of the ButtonCellRenderer class with default settings
public ButtonCellRenderer ( ) : System
리턴 System

CalcButtonBounds() 보호된 메소드

Returns a Rectangle that specifies the size and location of the button
protected CalcButtonBounds ( ) : Rectangle
리턴 System.Drawing.Rectangle

CalcImageRect() 보호된 메소드

Returns a Rectangle that specifies the size and location of the buttons Image
protected CalcImageRect ( Image image, ContentAlignment imageAlignment ) : Rectangle
image Image The buttons image
imageAlignment ContentAlignment The alignment of the image
리턴 System.Drawing.Rectangle

DrawImage() 보호된 메소드

Draws the Image displayed on the button
protected DrawImage ( Graphics g, Image image, Rectangle imageRect, bool enabled ) : void
g System.Drawing.Graphics The Graphics to draw on
image Image The Image to draw
imageRect System.Drawing.Rectangle A Rectangle that specifies the location /// of the Image
enabled bool Specifies whether the Image should be drawn /// in an enabled state
리턴 void

GetButtonRendererData() 보호된 메소드

Gets the ButtonCellRenderer specific data used by the Renderer from the specified Cell
protected GetButtonRendererData ( Cell cell ) : ButtonRendererData
cell ZForge.Controls.XPTable.Models.Cell The Cell to get the ButtonCellRenderer data for
리턴 ButtonRendererData

OnGotFocus() 공개 메소드

Raises the GotFocus event
public OnGotFocus ( CellFocusEventArgs e ) : void
e ZForge.Controls.XPTable.Events.CellFocusEventArgs A CellFocusEventArgs that contains the event data
리턴 void

OnKeyDown() 공개 메소드

Raises the KeyDown event
public OnKeyDown ( CellKeyEventArgs e ) : void
e ZForge.Controls.XPTable.Events.CellKeyEventArgs A CellKeyEventArgs that contains the event data
리턴 void

OnKeyUp() 공개 메소드

Raises the KeyUp event
public OnKeyUp ( CellKeyEventArgs e ) : void
e ZForge.Controls.XPTable.Events.CellKeyEventArgs A CellKeyEventArgs that contains the event data
리턴 void

OnLostFocus() 공개 메소드

Raises the LostFocus event
public OnLostFocus ( CellFocusEventArgs e ) : void
e ZForge.Controls.XPTable.Events.CellFocusEventArgs A CellFocusEventArgs that contains the event data
리턴 void

OnMouseDown() 공개 메소드

Raises the MouseDown event
public OnMouseDown ( CellMouseEventArgs e ) : void
e ZForge.Controls.XPTable.Events.CellMouseEventArgs A CellMouseEventArgs that contains the event data
리턴 void

OnMouseEnter() 공개 메소드

Raises the MouseEnter event
public OnMouseEnter ( CellMouseEventArgs e ) : void
e ZForge.Controls.XPTable.Events.CellMouseEventArgs A CellMouseEventArgs that contains the event data
리턴 void

OnMouseLeave() 공개 메소드

Raises the MouseLeave event
public OnMouseLeave ( CellMouseEventArgs e ) : void
e ZForge.Controls.XPTable.Events.CellMouseEventArgs A CellMouseEventArgs that contains the event data
리턴 void

OnMouseMove() 공개 메소드

Raises the MouseMove event
public OnMouseMove ( CellMouseEventArgs e ) : void
e ZForge.Controls.XPTable.Events.CellMouseEventArgs A CellMouseEventArgs that contains the event data
리턴 void

OnMouseUp() 공개 메소드

Raises the MouseUp event
public OnMouseUp ( CellMouseEventArgs e ) : void
e ZForge.Controls.XPTable.Events.CellMouseEventArgs A CellMouseEventArgs that contains the event data
리턴 void

OnPaint() 보호된 메소드

Raises the Paint event
protected OnPaint ( PaintCellEventArgs e ) : void
e ZForge.Controls.XPTable.Events.PaintCellEventArgs A PaintCellEventArgs that contains the event data
리턴 void

OnPaintBackground() 보호된 메소드

Raises the PaintBackground event
protected OnPaintBackground ( PaintCellEventArgs e ) : void
e ZForge.Controls.XPTable.Events.PaintCellEventArgs A PaintCellEventArgs that contains the event data
리턴 void

OnPaintCell() 공개 메소드

Raises the PaintCell event
public OnPaintCell ( PaintCellEventArgs e ) : void
e ZForge.Controls.XPTable.Events.PaintCellEventArgs A PaintCellEventArgs that contains the event data
리턴 void