C# Class SourceGrid.Cells.Editors.Factory

显示文件 Open project: zhuangyy/Motion

Public Methods

Method Description
Create ( Type p_Type ) : Cells.Editors.EditorBase

Construct an EditorBase for the specified type. You can set the value returned in the Editor property. If the Type support a UITypeEditor returns a EditorUITypeEditor else if the type has a StandardValues list return a EditorComboBox else if the type support string conversion returns a EditorTextBox otherwise returns null.

Create ( Type p_Type, object p_DefaultValue, bool p_bAllowNull, System p_StandardValues, bool p_bStandardValueExclusive, System p_TypeConverter, System p_UITypeEditor ) : Cells.Editors.EditorBase

Construct a CellEditor for the specified type

Method Details

Create() public static method

Construct an EditorBase for the specified type. You can set the value returned in the Editor property. If the Type support a UITypeEditor returns a EditorUITypeEditor else if the type has a StandardValues list return a EditorComboBox else if the type support string conversion returns a EditorTextBox otherwise returns null.
public static Create ( Type p_Type ) : Cells.Editors.EditorBase
p_Type System.Type Type to edit
return Cells.Editors.EditorBase

Create() public static method

Construct a CellEditor for the specified type
public static Create ( Type p_Type, object p_DefaultValue, bool p_bAllowNull, System p_StandardValues, bool p_bStandardValueExclusive, System p_TypeConverter, System p_UITypeEditor ) : Cells.Editors.EditorBase
p_Type System.Type Cell Type
p_DefaultValue object Default value of the editor
p_bAllowNull bool Allow null
p_StandardValues System List of available values or null if there is no available values list
p_bStandardValueExclusive bool Indicates if the p_StandardValue are the unique values supported
p_TypeConverter System Type converter used for conversion for the specified type
p_UITypeEditor System UITypeEditor if null must be populated the TypeConverter
return Cells.Editors.EditorBase