C# Class XRefresh.ProjectTypeCellEditor

A class for editing Cells that look like a ComboBox
Inheritance: XPTable.Editors.DropDownCellEditor
ファイルを表示 Open project: binaryage/xrefresh Class Usage Examples

Public Methods

Method Description
CancelEditing ( ) : void

Stops editing the Cell and ignores any changes

ProjectTypeCellEditor ( ImageList images ) : 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

UpdateDropDownSize ( ) : void

Protected Methods

Method Description
HideDropDown ( ) : void
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
HideCaret ( IntPtr hWnd ) : bool
OpenCustomTypeDialog ( Model folder ) : void
TextBox_HideCarret ( object sender, EventArgs e ) : void
TextBox_HideCarretM ( object sender, MouseEventArgs e ) : void
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

HideDropDown() protected method

protected HideDropDown ( ) : void
return void

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

ProjectTypeCellEditor() public method

Initializes a new instance of the ComboBoxCellEditor class with default settings
public ProjectTypeCellEditor ( ImageList images ) : System
images System.Windows.Forms.ImageList
return System

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

UpdateDropDownSize() public method

public UpdateDropDownSize ( ) : void
return void