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

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

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

Метод Описание
ImageCellRenderer ( ) : System

Initializes a new instance of the ImageCellRenderer class with default settings

OnPaintCell ( PaintCellEventArgs e ) : void

Raises the PaintCell event

Защищенные методы

Метод Описание
CalcImageRect ( Image image, ImageSizeMode sizeMode, RowAlignment rowAlignment, ColumnAlignment columnAlignment ) : Rectangle

Gets the Rectangle that specifies the Size and Location of the Image contained in the current Cell

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

Draws the Image contained in the Cell

OnPaint ( PaintCellEventArgs e ) : void

Raises the Paint event

Описание методов

CalcImageRect() защищенный Метод

Gets the Rectangle that specifies the Size and Location of the Image contained in the current Cell
protected CalcImageRect ( Image image, ImageSizeMode sizeMode, RowAlignment rowAlignment, ColumnAlignment columnAlignment ) : Rectangle
image Image The Image to be drawn
sizeMode ImageSizeMode An ImageSizeMode that specifies how the /// specified Image is scaled
rowAlignment RowAlignment The alignment of the current Cell's row
columnAlignment ColumnAlignment The alignment of the current Cell's Column
Результат System.Drawing.Rectangle

DrawImage() защищенный Метод

Draws the Image contained in the Cell
protected DrawImage ( Graphics g, Image image, Rectangle imageRect, bool scaled, bool enabled ) : void
g System.Drawing.Graphics The Graphics used to paint the Image
image Image The Image to be drawn
imageRect System.Drawing.Rectangle A rectangle that specifies the Size and /// Location of the Image
scaled bool Specifies whether the image is to be scaled
enabled bool Specifies whether the Image should be drawn /// in an enabled state
Результат void

ImageCellRenderer() публичный Метод

Initializes a new instance of the ImageCellRenderer class with default settings
public ImageCellRenderer ( ) : System
Результат System

OnPaint() защищенный Метод

Raises the Paint event
protected OnPaint ( 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