C# Class XPTable.Editors.TextCellEditor

A class for editing Cells that contain strings
Inheritance: XPTable.Editors.CellEditor
ファイルを表示 Open project: binaryage/xrefresh

Public Methods

Method Description
CancelEditing ( ) : void

Stops editing the Cell and ignores any changes

StartEditing ( ) : void

Starts editing the Cell

StopEditing ( ) : void

Stops editing the Cell and commits any changes

TextCellEditor ( ) : System

Initializes a new instance of the TextCellEditor class with default settings

Protected Methods

Method Description
OnKeyPress ( object sender, KeyPressEventArgs e ) : void

Handler for the editors TextBox.KeyPress event

OnLostFocus ( object sender, EventArgs e ) : void

Handler for the editors TextBox.LostFocus event

SetCellValue ( ) : void

Sets the contents of the Cell being edited based on the value in the editor

SetEditLocation ( Rectangle cellRect ) : void

Sets the location and size of the CellEditor

SetEditValue ( ) : void

Sets the initial value of the editor based on the contents of the Cell being edited

Method Details

CancelEditing() public method

Stops editing the Cell and ignores any changes
public CancelEditing ( ) : void
return void

OnKeyPress() protected method

Handler for the editors TextBox.KeyPress event
protected OnKeyPress ( object sender, KeyPressEventArgs e ) : void
sender object The object that raised the event
e System.Windows.Forms.KeyPressEventArgs A KeyPressEventArgs that contains the event data
return void

OnLostFocus() protected method

Handler for the editors TextBox.LostFocus event
protected OnLostFocus ( object sender, EventArgs e ) : void
sender object The object that raised the event
e System.EventArgs An EventArgs that contains the event data
return void

SetCellValue() protected method

Sets the contents of the Cell being edited based on the value in the editor
protected SetCellValue ( ) : void
return void

SetEditLocation() protected method

Sets the location and size of the CellEditor
protected SetEditLocation ( Rectangle cellRect ) : void
cellRect System.Drawing.Rectangle A Rectangle that represents the size and location /// of the Cell being edited
return void

SetEditValue() protected method

Sets the initial value of the editor based on the contents of the Cell being edited
protected SetEditValue ( ) : void
return void

StartEditing() public method

Starts editing the Cell
public StartEditing ( ) : void
return void

StopEditing() public method

Stops editing the Cell and commits any changes
public StopEditing ( ) : void
return void

TextCellEditor() public method

Initializes a new instance of the TextCellEditor class with default settings
public TextCellEditor ( ) : System
return System