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

A class for editing Cells that contain DateTimes
Inheritance: DropDownCellEditor
Afficher le fichier Open project: zhuangyy/Motion

Méthodes publiques

Méthode Description
CancelEditing ( ) : void

Stops editing the Cell and ignores any changes

DateTimeCellEditor ( ) : System

Initializes a new instance of the DateTimeCellEditor class with default settings

StartEditing ( ) : void

Starts editing the Cell

StopEditing ( ) : void

Stops editing the Cell and commits any changes

Méthodes protégées

Méthode Description
OnDateSelected ( DateRangeEventArgs e ) : void

Raises the DateSelected 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

Private Methods

Méthode Description
calendar_DateSelected ( object sender, DateRangeEventArgs e ) : void

Handler for the editors MonthCalendar.DateSelected events

Method Details

CancelEditing() public méthode

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

DateTimeCellEditor() public méthode

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

OnDateSelected() protected méthode

Raises the DateSelected event
protected OnDateSelected ( DateRangeEventArgs e ) : void
e System.Windows.Forms.DateRangeEventArgs A DateRangeEventArgs that contains the event data
Résultat void

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

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