C# Класс ZForge.Controls.XPTable.Renderers.ButtonCellRenderer

A CellRenderer that draws Cell contents as Buttons
Наследование: CellRenderer
Показать файл Открыть проект

Открытые методы

Метод Описание
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