C# Class SourceGrid.Cells.Editors.ComboBox

Inheritance: SourceGrid.Cells.Editors.EditorControlBase
显示文件 Open project: zhuangyy/Motion Class Usage Examples

Public Methods

Method Description
ComboBox ( Type p_Type ) : System

Construct a Model. Based on the Type specified the constructor populate AllowNull, DefaultValue, TypeConverter, StandardValues, StandardValueExclusive

ComboBox ( Type p_Type, ICollection p_StandardValues, bool p_StandardValueExclusive ) : System

Construct a Model. Based on the Type specified the constructor populate AllowNull, DefaultValue, TypeConverter, StandardValues, StandardValueExclusive

GetEditedValue ( ) : object

Returns the value inserted with the current editor control

SetEditValue ( object editValue ) : void

Set the specified value in the current editor control.

Protected Methods

Method Description
CreateControl ( ) : Control

Create the editor control

OnSendCharToEditor ( char key ) : void

Method Details

ComboBox() public method

Construct a Model. Based on the Type specified the constructor populate AllowNull, DefaultValue, TypeConverter, StandardValues, StandardValueExclusive
public ComboBox ( Type p_Type ) : System
p_Type System.Type The type of this model
return System

ComboBox() public method

Construct a Model. Based on the Type specified the constructor populate AllowNull, DefaultValue, TypeConverter, StandardValues, StandardValueExclusive
public ComboBox ( Type p_Type, ICollection p_StandardValues, bool p_StandardValueExclusive ) : System
p_Type System.Type The type of this model
p_StandardValues ICollection
p_StandardValueExclusive bool True to not allow custom value, only the values specified in the standardvalues collection are allowed.
return System

CreateControl() protected method

Create the editor control
protected CreateControl ( ) : Control
return System.Windows.Forms.Control

GetEditedValue() public method

Returns the value inserted with the current editor control
public GetEditedValue ( ) : object
return object

OnSendCharToEditor() protected method

protected OnSendCharToEditor ( char key ) : void
key char
return void

SetEditValue() public method

Set the specified value in the current editor control.
public SetEditValue ( object editValue ) : void
editValue object
return void