C# Class ZForge.Controls.XPTable.Models.ControlFactory

Abstract base class. Implement this and override GetControl to provide the control instance for each cell.
Afficher le fichier Open project: zhuangyy/Motion Class Usage Examples

Méthodes publiques

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

Method Details

ControlFactory() public méthode

Creates a ControlFactory with default values.
public ControlFactory ( ) : System
Résultat System

GetControl() public abstract méthode

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.
Résultat System.Windows.Forms.Control

UpdateControl() public méthode

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.
Résultat System.Windows.Forms.Control