C# Class SourceGrid.Cells.Views.ViewBase

Inheritance: DevAge.Drawing.VisualElements.ContainerBase, IView
Afficher le fichier Open project: zhuangyy/Motion Class Usage Examples

Méthodes publiques

Свойство Type Description
DefaultAlignment DevAge.Drawing.ContentAlignment
DefaultBackColor Color
DefaultBorder DevAge.Drawing.RectangleBorder
DefaultForeColor Color
DefaultPadding DevAge.Drawing.Padding

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
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.

Method Details

DrawCell() public méthode

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

GetDrawingFont() public méthode

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
Résultat System.Drawing.Font

Measure() public méthode

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.
Résultat System.Drawing.Size

PrepareView() protected méthode

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.
Résultat void

ViewBase() public méthode

Use default setting
public ViewBase ( ) : System
Résultat System

ViewBase() public méthode

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
Résultat System

Property Details

DefaultAlignment public_oe static_oe property

public static ContentAlignment,DevAge.Drawing DefaultAlignment
Résultat DevAge.Drawing.ContentAlignment

DefaultBackColor public_oe static_oe property

public static Color DefaultBackColor
Résultat Color

DefaultBorder public_oe static_oe property

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

DefaultForeColor public_oe static_oe property

public static Color DefaultForeColor
Résultat Color

DefaultPadding public_oe static_oe property

public static Padding,DevAge.Drawing DefaultPadding
Résultat DevAge.Drawing.Padding