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

Base class for Cell editors
Наследование: ICellEditor, IMouseMessageFilterClient, IKeyMessageFilterClient
Показать файл Открыть проект

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

Метод Описание
CancelEditing ( ) : void

Stops editing the Cell and ignores any changes

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

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

Метод Описание
CellEditor ( ) : System

Initializes a new instance of the CellEditor class with default settings

HideEditControl ( ) : void

Conceals the editor from the user, but does not remove it from the Table's Control collection

OnBeginEdit ( CellEditEventArgs e ) : void

Raises the BeginEdit event

OnCancelEdit ( CellEditEventArgs e ) : void

Raises the CancelEdit event

OnEndEdit ( CellEditEventArgs e ) : void

Raises the EndEdit event

RemoveEditControl ( ) : void

Conceals the editor from the user and removes it from the Table's Control collection

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

ShowEditControl ( ) : void

Displays the editor to the user and adds it to the Table's Control collection

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

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

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

CellEditor() защищенный Метод

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

HideEditControl() защищенный Метод

Conceals the editor from the user, but does not remove it from the Table's Control collection
protected HideEditControl ( ) : void
Результат void

OnBeginEdit() защищенный Метод

Raises the BeginEdit event
protected OnBeginEdit ( CellEditEventArgs e ) : void
e ZForge.Controls.XPTable.Events.CellEditEventArgs A CellEditEventArgs that contains the event data
Результат void

OnCancelEdit() защищенный Метод

Raises the CancelEdit event
protected OnCancelEdit ( CellEditEventArgs e ) : void
e ZForge.Controls.XPTable.Events.CellEditEventArgs A CellEditEventArgs that contains the event data
Результат void

OnEndEdit() защищенный Метод

Raises the EndEdit event
protected OnEndEdit ( CellEditEventArgs e ) : void
e ZForge.Controls.XPTable.Events.CellEditEventArgs A CellEditEventArgs 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

RemoveEditControl() защищенный Метод

Conceals the editor from the user and removes it from the Table's Control collection
protected RemoveEditControl ( ) : void
Результат void

SetCellValue() защищенный абстрактный Метод

Sets the contents of the Cell being edited based on the value in the editor
protected abstract SetCellValue ( ) : void
Результат void

SetEditLocation() защищенный абстрактный Метод

Sets the location and size of the CellEditor
protected abstract SetEditLocation ( Rectangle cellRect ) : void
cellRect System.Drawing.Rectangle A Rectangle that represents the size and location /// of the Cell being edited
Результат void

SetEditValue() защищенный абстрактный Метод

Sets the initial value of the editor based on the contents of the Cell being edited
protected abstract SetEditValue ( ) : void
Результат void

ShowEditControl() защищенный Метод

Displays the editor to the user and adds it to the Table's Control collection
protected ShowEditControl ( ) : void
Результат void

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

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

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

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