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

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

공개 메소드들

메소드 설명
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