C# 클래스 ZForge.Controls.XPTable.Models.ControlFactory

Abstract base class. Implement this and override GetControl to provide the control instance for each cell.
파일 보기 프로젝트 열기: zhuangyy/Motion 1 사용 예제들

공개 메소드들

메소드 설명
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