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

Abstract base class. Implement this and override GetControl to provide the control instance for each cell.
ファイルを表示 Open project: zhuangyy/Motion Class Usage Examples

Public Methods

Method 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 method

Creates a ControlFactory with default values.
public ControlFactory ( ) : System
return System

GetControl() public abstract method

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.
return System.Windows.Forms.Control

UpdateControl() public method

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.
return System.Windows.Forms.Control