C# Класс ZForge.Controls.XPTable.Models.ControlFactory

Abstract base class. Implement this and override GetControl to provide the control instance for each cell.
Показать файл Открыть проект Примеры использования класса

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

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

Creates a ControlFactory with default values.

GetControl ( Cell cell ) : Control

Creates the control to show for the given cell. Use Cell.Data to store any state object for the cell.

UpdateControl ( Cell cell, Control control ) : Control

Allows an existing control to be modified or swapped for another control. Return null if the same control is left in place, or return a control if that is to replace the current one.

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

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

Creates a ControlFactory with default values.
public ControlFactory ( ) : System
Результат System

GetControl() публичный абстрактный Метод

Creates the control to show for the given cell. Use Cell.Data to store any state object for the cell.
public abstract GetControl ( Cell cell ) : Control
cell Cell The cell that the control will be added to.
Результат System.Windows.Forms.Control

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

Allows an existing control to be modified or swapped for another control. Return null if the same control is left in place, or return a control if that is to replace the current one.
public UpdateControl ( Cell cell, Control control ) : Control
cell Cell The cell that contains the control.
control System.Windows.Forms.Control The current control in that cell.
Результат System.Windows.Forms.Control