C# Class SourceGrid.Cells.Editors.TextBox

Inheritance: SourceGrid.Cells.Editors.EditorControlBase
Show file Open project: zhuangyy/Motion Class Usage Examples

Public Methods

Method Description
GetEditedValue ( ) : object

Returns the value inserted with the current editor control

SetEditValue ( object editValue ) : void

Set the specified value in the current editor control.

TextBox ( Type p_Type ) : System

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

Protected Methods

Method Description
CreateControl ( ) : Control

Create the editor control

OnSendCharToEditor ( char key ) : void
OnStartingEdit ( CellContext cellContext, Control editorControl ) : void

This method is called just before the edit start. You can use this method to customize the editor with the cell informations.

Method Details

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

OnStartingEdit() protected method

This method is called just before the edit start. You can use this method to customize the editor with the cell informations.
protected OnStartingEdit ( CellContext cellContext, Control editorControl ) : void
cellContext CellContext
editorControl System.Windows.Forms.Control
return void

SetEditValue() public method

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

TextBox() public method

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