C# 클래스 XPTable.Editors.NumberCellEditor

A class for editing Cells that contain numbers
상속: XPTable.Editors.CellEditor, IEditorUsesRendererButtons
파일 보기 프로젝트 열기: binaryage/xrefresh

보호된 프로퍼티들

프로퍼티 타입 설명
DownButtonID int
UpButtonID int

공개 메소드들

메소드 설명
CancelEditing ( ) : void

Stops editing the Cell and ignores any changes

NumberCellEditor ( ) : System

Initializes a new instance of the NumberCellEditor class with default settings

OnEditorButtonMouseDown ( object sender, XPTable.Events.CellMouseEventArgs e ) : void

Handler for the editors buttons MouseDown event

OnEditorButtonMouseUp ( object sender, XPTable.Events.CellMouseEventArgs e ) : void

Handler for the editors buttons MouseUp event

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

Prepares the CellEditor to edit the specified Cell

StartEditing ( ) : void

Starts editing the Cell

StopEditing ( ) : void

Stops editing the Cell and commits any changes

보호된 메소드들

메소드 설명
DownButton ( ) : void

Simulates the down button being pressed

OnMouseWheel ( object sender, MouseEventArgs e ) : void

Handler for the editors TextBox.MouseWheel event

OnTextBoxKeyDown ( object sender, KeyEventArgs e ) : void

Handler for the editors TextBox.KeyDown event

OnTextBoxKeyPress ( object sender, KeyPressEventArgs e ) : void

Handler for the editors TextBox.KeyPress event

OnTextBoxLostFocus ( object sender, EventArgs e ) : void

Handler for the editors TextBox.LostFocus event

ParseEditText ( ) : void

Converts the editors current value to a number

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

StartTimer ( ) : void

Starts the Timer

StopTimer ( ) : void

Stops the Timer

UpButton ( ) : void

Simulates the up button being pressed

UpdateEditText ( ) : void

Updates the editors text value to the current value

ValidateEditText ( ) : void

Checks the current value and updates the editors text value

비공개 메소드들

메소드 설명
Constrain ( decimal value ) : decimal

Ensures that the specified value is between the editors Maximun and Minimum values

TimerHandler ( object sender, EventArgs e ) : void

Handler for the editors Timer event

메소드 상세

CancelEditing() 공개 메소드

Stops editing the Cell and ignores any changes
public CancelEditing ( ) : void
리턴 void

DownButton() 보호된 메소드

Simulates the down button being pressed
protected DownButton ( ) : void
리턴 void

NumberCellEditor() 공개 메소드

Initializes a new instance of the NumberCellEditor class with default settings
public NumberCellEditor ( ) : System
리턴 System

OnEditorButtonMouseDown() 공개 메소드

Handler for the editors buttons MouseDown event
public OnEditorButtonMouseDown ( object sender, XPTable.Events.CellMouseEventArgs e ) : void
sender object The object that raised the event
e XPTable.Events.CellMouseEventArgs A CellMouseEventArgs that contains the event data
리턴 void

OnEditorButtonMouseUp() 공개 메소드

Handler for the editors buttons MouseUp event
public OnEditorButtonMouseUp ( object sender, XPTable.Events.CellMouseEventArgs e ) : void
sender object The object that raised the event
e XPTable.Events.CellMouseEventArgs A CellMouseEventArgs that contains the event data
리턴 void

OnMouseWheel() 보호된 메소드

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
리턴 void

OnTextBoxKeyDown() 보호된 메소드

Handler for the editors TextBox.KeyDown event
protected OnTextBoxKeyDown ( 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
리턴 void

OnTextBoxKeyPress() 보호된 메소드

Handler for the editors TextBox.KeyPress event
protected OnTextBoxKeyPress ( 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

OnTextBoxLostFocus() 보호된 메소드

Handler for the editors TextBox.LostFocus event
protected OnTextBoxLostFocus ( object sender, EventArgs e ) : void
sender object The object that raised the event
e System.EventArgs An EventArgs that contains the event data
리턴 void

ParseEditText() 보호된 메소드

Converts the editors current value to a number
protected ParseEditText ( ) : void
리턴 void

PrepareForEditing() 공개 메소드

Prepares the CellEditor to edit the specified Cell
public PrepareForEditing ( Cell cell, Table table, CellPos cellPos, Rectangle cellRect, bool userSetEditorValues ) : bool
cell Cell The Cell to be edited
table Table The Table that contains the Cell
cellPos CellPos A CellPos representing the position of the Cell
cellRect 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

SetCellValue() 보호된 메소드

Sets the contents of the Cell being edited based on the value in the editor
protected SetCellValue ( ) : void
리턴 void

SetEditLocation() 보호된 메소드

Sets the location and size of the CellEditor
protected SetEditLocation ( Rectangle cellRect ) : void
cellRect 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 SetEditValue ( ) : void
리턴 void

StartEditing() 공개 메소드

Starts editing the Cell
public StartEditing ( ) : void
리턴 void

StartTimer() 보호된 메소드

Starts the Timer
protected StartTimer ( ) : void
리턴 void

StopEditing() 공개 메소드

Stops editing the Cell and commits any changes
public StopEditing ( ) : void
리턴 void

StopTimer() 보호된 메소드

Stops the Timer
protected StopTimer ( ) : void
리턴 void

UpButton() 보호된 메소드

Simulates the up button being pressed
protected UpButton ( ) : void
리턴 void

UpdateEditText() 보호된 메소드

Updates the editors text value to the current value
protected UpdateEditText ( ) : void
리턴 void

ValidateEditText() 보호된 메소드

Checks the current value and updates the editors text value
protected ValidateEditText ( ) : void
리턴 void

프로퍼티 상세

DownButtonID 보호되어 있는 정적으로 프로퍼티

ID number for the down button
protected static int DownButtonID
리턴 int

UpButtonID 보호되어 있는 정적으로 프로퍼티

ID number for the up button
protected static int UpButtonID
리턴 int