C# Class ZForge.Controls.XPTable.Editors.ComboBoxCellEditor

A class for editing Cells that look like a ComboBox
Inheritance: DropDownCellEditor
显示文件 Open project: zhuangyy/Motion

Public Methods

Method Description
CancelEditing ( ) : void

Stops editing the Cell and ignores any changes

ComboBoxCellEditor ( ) : System

Initializes a new instance of the ComboBoxCellEditor class with default settings

StartEditing ( ) : void

Starts editing the Cell

StopEditing ( ) : void

Stops editing the Cell and commits any changes

Protected Methods

Method Description
OnDrawItem ( DrawItemEventArgs e ) : void

Raises the DrawItem event

OnKeyDown ( object sender, KeyEventArgs e ) : void

Handler for the editors TextBox.KeyDown and ListBox.KeyDown events

OnMeasureItem ( System.Windows.Forms.MeasureItemEventArgs e ) : void

Raises the MeasureItem event

OnMouseWheel ( object sender, MouseEventArgs e ) : void

Handler for the editors TextBox.MouseWheel event

OnSelectedIndexChanged ( EventArgs e ) : void

Raises the SelectedIndexChanged 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

ShowDropDown ( ) : void

Displays the drop down portion to the user

Private Methods

Method Description
listbox_Click ( object sender, EventArgs e ) : void

Handler for the editors ListBox.Click event

listbox_DrawItem ( object sender, DrawItemEventArgs e ) : void

Handler for the editors ListBox.DrawItem event

listbox_MeasureItem ( object sender, System.Windows.Forms.MeasureItemEventArgs e ) : void

Handler for the editors ListBox.MeasureItem event

listbox_MouseEnter ( object sender, EventArgs e ) : void

Handler for the editors ListBox.MouseEnter event

listbox_SelectedIndexChanged ( object sender, EventArgs e ) : void

Handler for the editors ListBox.SelectedIndexChanged event

Method Details

CancelEditing() public method

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

ComboBoxCellEditor() public method

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

OnDrawItem() protected method

Raises the DrawItem event
protected OnDrawItem ( DrawItemEventArgs e ) : void
e System.Windows.Forms.DrawItemEventArgs A DrawItemEventArgs that contains the event data
return void

OnKeyDown() protected method

Handler for the editors TextBox.KeyDown and ListBox.KeyDown events
protected OnKeyDown ( object sender, KeyEventArgs e ) : void
sender object The object that raised the event
e System.Windows.Forms.KeyEventArgs A KeyEventArgs that contains the event data
return void

OnMeasureItem() protected method

Raises the MeasureItem event
protected OnMeasureItem ( System.Windows.Forms.MeasureItemEventArgs e ) : void
e System.Windows.Forms.MeasureItemEventArgs A MeasureItemEventArgs that contains the event data
return void

OnMouseWheel() protected method

Handler for the editors TextBox.MouseWheel event
protected OnMouseWheel ( object sender, MouseEventArgs e ) : void
sender object The object that raised the event
e MouseEventArgs A MouseEventArgs that contains the event data
return void

OnSelectedIndexChanged() protected method

Raises the SelectedIndexChanged event
protected OnSelectedIndexChanged ( EventArgs e ) : void
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

ShowDropDown() protected method

Displays the drop down portion to the user
protected ShowDropDown ( ) : 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