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

A base class for editing Cells that contain drop down buttons
Inheritance: CellEditor, IEditorUsesRendererButtons
Afficher le fichier Open project: zhuangyy/Motion Class Usage Examples

Private Properties

Свойство Type Description
textbox_MouseEnter void

Méthodes publiques

Méthode Description
CancelEditing ( ) : void

Stops editing the Cell and ignores any changes

DropDownCellEditor ( ) : System

Initializes a new instance of the DropDownCellEditor class with default settings

OnEditorButtonMouseDown ( object sender, CellMouseEventArgs e ) : void

Handler for the editors drop down button MouseDown event

OnEditorButtonMouseUp ( object sender, CellMouseEventArgs e ) : void

Handler for the editors drop down button MouseUp event

PrepareForEditing ( Cell cell, Table table, CellPos cellPos, Rectangle cellRect, bool userSetEditorValues ) : bool

Prepares the CellEditor to edit the specified Cell

ProcessKeyMessage ( Control target, WindowMessage msg, int wParam, int lParam ) : bool

Filters out a key message before it is dispatched

ProcessMouseMessage ( Control target, WindowMessage msg, int wParam, int lParam ) : bool

Filters out a mouse message before it is dispatched

StartEditing ( ) : void

Starts editing the Cell

StopEditing ( ) : void

Stops editing the Cell and commits any changes

Méthodes protégées

Méthode Description
HideDropDown ( ) : void

Conceals the drop down portion from the user

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

ShouldStopEditing ( Control target, Point cursorPos ) : bool

Gets whether the editor should stop editing if a mouse click occurs outside of the DropDownContainer while it is dropped down

ShowDropDown ( ) : void

Displays the drop down portion to the user

Private Methods

Méthode Description
textbox_MouseEnter ( object sender, EventArgs e ) : void

Handler for the editors textbox MouseEnter event

Method Details

CancelEditing() public méthode

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

DropDownCellEditor() public méthode

Initializes a new instance of the DropDownCellEditor class with default settings
public DropDownCellEditor ( ) : System
Résultat System

HideDropDown() protected méthode

Conceals the drop down portion from the user
protected HideDropDown ( ) : void
Résultat void

OnEditorButtonMouseDown() public méthode

Handler for the editors drop down button MouseDown event
public OnEditorButtonMouseDown ( object sender, CellMouseEventArgs e ) : void
sender object The object that raised the event
e ZForge.Controls.XPTable.Events.CellMouseEventArgs A CellMouseEventArgs that contains the event data
Résultat void

OnEditorButtonMouseUp() public méthode

Handler for the editors drop down button MouseUp event
public OnEditorButtonMouseUp ( object sender, CellMouseEventArgs e ) : void
sender object The object that raised the event
e ZForge.Controls.XPTable.Events.CellMouseEventArgs A CellMouseEventArgs that contains the event data
Résultat void

OnKeyPress() protected méthode

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

OnLostFocus() protected méthode

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

PrepareForEditing() public méthode

Prepares the CellEditor to edit the specified Cell
public PrepareForEditing ( Cell cell, Table table, CellPos cellPos, Rectangle cellRect, bool userSetEditorValues ) : bool
cell ZForge.Controls.XPTable.Models.Cell The Cell to be edited
table ZForge.Controls.XPTable.Models.Table The Table that contains the Cell
cellPos ZForge.Controls.XPTable.Models.CellPos A CellPos representing the position of the Cell
cellRect System.Drawing.Rectangle The Rectangle that represents the Cells location and size
userSetEditorValues bool Specifies whether the ICellEditors /// starting value has already been set by the user
Résultat bool

ProcessKeyMessage() public méthode

Filters out a key message before it is dispatched
public ProcessKeyMessage ( Control target, WindowMessage msg, int wParam, int lParam ) : bool
target System.Windows.Forms.Control The Control that will receive the message
msg WindowMessage A WindowMessage that represents the message to process
wParam int Specifies the WParam field of the message
lParam int Specifies the LParam field of the message
Résultat bool

ProcessMouseMessage() public méthode

Filters out a mouse message before it is dispatched
public ProcessMouseMessage ( Control target, WindowMessage msg, int wParam, int lParam ) : bool
target System.Windows.Forms.Control The Control that will receive the message
msg WindowMessage A WindowMessage that represents the message to process
wParam int Specifies the WParam field of the message
lParam int Specifies the LParam field of the message
Résultat bool

ShouldStopEditing() protected méthode

Gets whether the editor should stop editing if a mouse click occurs outside of the DropDownContainer while it is dropped down
protected ShouldStopEditing ( Control target, Point cursorPos ) : bool
target System.Windows.Forms.Control The Control that will receive the message
cursorPos Point The current position of the mouse cursor
Résultat bool

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