C# 클래스 SourceGrid.Cells.Views.ViewBase

상속: DevAge.Drawing.VisualElements.ContainerBase, IView
파일 보기 프로젝트 열기: zhuangyy/Motion 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
DefaultAlignment DevAge.Drawing.ContentAlignment
DefaultBackColor Color
DefaultBorder DevAge.Drawing.RectangleBorder
DefaultForeColor Color
DefaultPadding DevAge.Drawing.Padding

공개 메소드들

메소드 설명
DrawCell ( CellContext cellContext, DevAge graphics, RectangleF rectangle ) : void

Draw the cell specified

GetDrawingFont ( GridVirtual grid ) : Font

Get the font of the cell, check if the current font is null and in this case return the grid font

Measure ( CellContext cellContext, Size maxLayoutArea ) : Size

Returns the minimum required size of the current cell, calculating using the current DisplayString, Image and Borders informations.

ViewBase ( ) : System

Use default setting

ViewBase ( ViewBase p_Source ) : System

Copy constructor. This method duplicate all the reference field (Image, Font, StringFormat) creating a new instance.

보호된 메소드들

메소드 설명
PrepareView ( CellContext context ) : void

Prepare the current View before drawing. Override this method for customize the specials VisualModel that you need to create. Always calls the base PrepareView.

메소드 상세

DrawCell() 공개 메소드

Draw the cell specified
public DrawCell ( CellContext cellContext, DevAge graphics, RectangleF rectangle ) : void
cellContext CellContext
graphics DevAge Paint arguments
rectangle System.Drawing.RectangleF
리턴 void

GetDrawingFont() 공개 메소드

Get the font of the cell, check if the current font is null and in this case return the grid font
public GetDrawingFont ( GridVirtual grid ) : Font
grid GridVirtual
리턴 System.Drawing.Font

Measure() 공개 메소드

Returns the minimum required size of the current cell, calculating using the current DisplayString, Image and Borders informations.
public Measure ( CellContext cellContext, Size maxLayoutArea ) : Size
cellContext CellContext
maxLayoutArea System.Drawing.Size SizeF structure that specifies the maximum layout area for the text. If width or height are zero the value is set to a default maximum value.
리턴 System.Drawing.Size

PrepareView() 보호된 메소드

Prepare the current View before drawing. Override this method for customize the specials VisualModel that you need to create. Always calls the base PrepareView.
protected PrepareView ( CellContext context ) : void
context CellContext Current context. Cell to draw. This property is set before drawing. Only inside the PrepareView you can access this property.
리턴 void

ViewBase() 공개 메소드

Use default setting
public ViewBase ( ) : System
리턴 System

ViewBase() 공개 메소드

Copy constructor. This method duplicate all the reference field (Image, Font, StringFormat) creating a new instance.
public ViewBase ( ViewBase p_Source ) : System
p_Source ViewBase
리턴 System

프로퍼티 상세

DefaultAlignment 공개적으로 정적으로 프로퍼티

public static ContentAlignment,DevAge.Drawing DefaultAlignment
리턴 DevAge.Drawing.ContentAlignment

DefaultBackColor 공개적으로 정적으로 프로퍼티

public static Color DefaultBackColor
리턴 Color

DefaultBorder 공개적으로 정적으로 프로퍼티

A default RectangleBorder instance with a 1 pixed LightGray border on bottom and right side
public static RectangleBorder,DevAge.Drawing DefaultBorder
리턴 DevAge.Drawing.RectangleBorder

DefaultForeColor 공개적으로 정적으로 프로퍼티

public static Color DefaultForeColor
리턴 Color

DefaultPadding 공개적으로 정적으로 프로퍼티

public static Padding,DevAge.Drawing DefaultPadding
리턴 DevAge.Drawing.Padding