C# Класс SourceGrid.Cells.Views.ViewBase

Наследование: DevAge.Drawing.VisualElements.ContainerBase, IView
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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