C# Class XRefresh.ProjectTypeCellEditor

A class for editing Cells that look like a ComboBox
Inheritance: XPTable.Editors.DropDownCellEditor
Afficher le fichier Open project: binaryage/xrefresh Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode 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 méthode

Stops editing the Cell and ignores any changes
public CancelEditing ( ) : void
Résultat void

HideDropDown() protected méthode

protected HideDropDown ( ) : void
Résultat void

OnDrawItem() protected méthode

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

OnKeyDown() protected méthode

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
Résultat void

OnMeasureItem() protected méthode

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

OnMouseWheel() protected méthode

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
Résultat void

OnSelectedIndexChanged() protected méthode

Raises the SelectedIndexChanged event
protected OnSelectedIndexChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data
Résultat void

ProjectTypeCellEditor() public méthode

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

SetCellValue() protected méthode

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

SetEditLocation() protected méthode

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
Résultat void

SetEditValue() protected méthode

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

ShowDropDown() protected méthode

Displays the drop down portion to the user
protected ShowDropDown ( ) : void
Résultat void

StartEditing() public méthode

Starts editing the Cell
public StartEditing ( ) : void
Résultat void

StopEditing() public méthode

Stops editing the Cell and commits any changes
public StopEditing ( ) : void
Résultat void

UpdateDropDownSize() public méthode

public UpdateDropDownSize ( ) : void
Résultat void