C# Класс ZForge.Controls.XPTable.Editors.DropDownCellEditor

A base class for editing Cells that contain drop down buttons
Наследование: CellEditor, IEditorUsesRendererButtons
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
textbox_MouseEnter void

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
textbox_MouseEnter ( object sender, EventArgs e ) : void

Handler for the editors textbox MouseEnter event

Описание методов

CancelEditing() публичный метод

Stops editing the Cell and ignores any changes
public CancelEditing ( ) : void
Результат void

DropDownCellEditor() публичный метод

Initializes a new instance of the DropDownCellEditor class with default settings
public DropDownCellEditor ( ) : System
Результат System

HideDropDown() защищенный метод

Conceals the drop down portion from the user
protected HideDropDown ( ) : void
Результат void

OnEditorButtonMouseDown() публичный метод

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
Результат void

OnEditorButtonMouseUp() публичный метод

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
Результат void

OnKeyPress() защищенный метод

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
Результат void

OnLostFocus() защищенный метод

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
Результат void

PrepareForEditing() публичный метод

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
Результат bool

ProcessKeyMessage() публичный метод

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
Результат bool

ProcessMouseMessage() публичный метод

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
Результат bool

ShouldStopEditing() защищенный метод

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
Результат bool

ShowDropDown() защищенный метод

Displays the drop down portion to the user
protected ShowDropDown ( ) : void
Результат void

StartEditing() публичный метод

Starts editing the Cell
public StartEditing ( ) : void
Результат void

StopEditing() публичный метод

Stops editing the Cell and commits any changes
public StopEditing ( ) : void
Результат void