C# Class Umc.Core.Tools.VSGesture.Controls.PickerBase

Represents a base class of a Windows Picker control that allows you to edit a value of any type.
Inheritance: System.Windows.Forms.ContainerControl
显示文件 Open project: powerumc/vsgesture Class Usage Examples

Protected Methods

Method Description
IsInputKey ( Keys key ) : bool

Determines whether the specified key is a regular input key or a special key that requires preprocessing.

OnBackColorChanged ( EventArgs e ) : void

Raises the BackColorChanged event.

OnCursorChanged ( EventArgs e ) : void

Raises the CursorChanged event.

OnEnabledChanged ( EventArgs e ) : void

Raises the EnabledChanged event.

OnEnter ( EventArgs e ) : void

Raises the Enter event.

OnFontChanged ( EventArgs e ) : void

Raises the FontChanged event.

OnForeColorChanged ( EventArgs e ) : void

Raises the ForeColorChanged event.

OnGotFocus ( EventArgs e ) : void

Raises the GotFocus event.

OnHandleCreated ( EventArgs e ) : void

Raises the HandleCreated event.

OnKeyDown ( KeyEventArgs e ) : void

Raises the KeyDown event.

OnKeyPress ( KeyPressEventArgs e ) : void

Raises the KeyPress event.

OnLeave ( EventArgs e ) : void

Raises the Leave event.

OnMouseDown ( MouseEventArgs e ) : void

Raises the MouseDown event.

OnMouseWheel ( MouseEventArgs e ) : void

Raises the MouseWheel event.

OnPaint ( PaintEventArgs e ) : void

Raises the Paint event.

OnReadOnlyChanged ( EventArgs e ) : void

Raises the ReadOnlyChanged event.

OnSystemColorsChanged ( EventArgs e ) : void

Raises the SystemColorsChanged event.

OnValidating ( CancelEventArgs e ) : void

Raises the Validating event.

OnValueChanged ( EventArgs e ) : void

Raises the OnValueChanged event.

PickerBase ( Type type ) : System

Constructor

ProcessDialogKey ( Keys key ) : bool

Processes a dialog key.

ScaleCore ( float dx, float dy ) : void

Performs the work of scaling the entire control and any child controls.

SetBoundsCore ( int x, int y, int width, int height, BoundsSpecified specified ) : void

Performs the work of setting the specified bounds of this control.

Private Methods

Method Description
AdjustHeight ( ) : void
CanTextEditable ( ) : bool
CommitList ( ) : void
CommitText ( string text ) : bool
CommitValue ( object value ) : bool
DoDropDown ( ) : void
GetValueAsText ( object value ) : string
GetValueList ( ) : object[]
IsDropDown ( ) : bool
IsEnumerable ( ) : bool
LayoutControls ( ) : void
PaintBorder ( Graphics g ) : void
ProcessEditorKey ( Keys key ) : bool
SelectEnumerableValue ( bool next ) : void
SetValue ( object value ) : void
UpdateTextWithValue ( ) : bool
pickerButton_MouseDown ( object sender, MouseEventArgs e ) : void
pickerButton_MouseUp ( object sender, MouseEventArgs e ) : void
pickerListBox_MouseUp ( object sender, MouseEventArgs e ) : void
pickerListBox_SelectedIndexChanged ( object sender, EventArgs e ) : void
pickerTextBox_GotFocus ( object sender, EventArgs e ) : void
pickerTextBox_KeyDown ( object sender, KeyEventArgs e ) : void
pickerTextBox_KeyPress ( object sender, KeyPressEventArgs e ) : void
pickerTextBox_KeyUp ( object sender, KeyEventArgs e ) : void
pickerTextBox_LostFocus ( object sender, EventArgs e ) : void
pickerTextBox_TextChanged ( object sender, EventArgs e ) : void
pickerTextBox_Validated ( object sender, EventArgs e ) : void
pickerTextBox_Validating ( object sender, CancelEventArgs e ) : void
pickerValueBox_MouseDown ( object sender, MouseEventArgs e ) : void

Method Details

IsInputKey() protected method

Determines whether the specified key is a regular input key or a special key that requires preprocessing.
protected IsInputKey ( Keys key ) : bool
key Keys One of the Keys values.
return bool

OnBackColorChanged() protected method

Raises the BackColorChanged event.
protected OnBackColorChanged ( EventArgs e ) : void
e System.EventArgs The event data.
return void

OnCursorChanged() protected method

Raises the CursorChanged event.
protected OnCursorChanged ( EventArgs e ) : void
e System.EventArgs The event data.
return void

OnEnabledChanged() protected method

Raises the EnabledChanged event.
protected OnEnabledChanged ( EventArgs e ) : void
e System.EventArgs The event data.
return void

OnEnter() protected method

Raises the Enter event.
protected OnEnter ( EventArgs e ) : void
e System.EventArgs The event data.
return void

OnFontChanged() protected method

Raises the FontChanged event.
protected OnFontChanged ( EventArgs e ) : void
e System.EventArgs The event data.
return void

OnForeColorChanged() protected method

Raises the ForeColorChanged event.
protected OnForeColorChanged ( EventArgs e ) : void
e System.EventArgs The event data.
return void

OnGotFocus() protected method

Raises the GotFocus event.
protected OnGotFocus ( EventArgs e ) : void
e System.EventArgs The event data.
return void

OnHandleCreated() protected method

Raises the HandleCreated event.
protected OnHandleCreated ( EventArgs e ) : void
e System.EventArgs The event data.
return void

OnKeyDown() protected method

Raises the KeyDown event.
protected OnKeyDown ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs The event data.
return void

OnKeyPress() protected method

Raises the KeyPress event.
protected OnKeyPress ( KeyPressEventArgs e ) : void
e System.Windows.Forms.KeyPressEventArgs The event data.
return void

OnLeave() protected method

Raises the Leave event.
protected OnLeave ( EventArgs e ) : void
e System.EventArgs The event data.
return void

OnMouseDown() protected method

Raises the MouseDown event.
protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs The event data.
return void

OnMouseWheel() protected method

Raises the MouseWheel event.
protected OnMouseWheel ( MouseEventArgs e ) : void
e MouseEventArgs The event data.
return void

OnPaint() protected method

Raises the Paint event.
protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs The event data.
return void

OnReadOnlyChanged() protected method

Raises the ReadOnlyChanged event.
protected OnReadOnlyChanged ( EventArgs e ) : void
e System.EventArgs The event data.
return void

OnSystemColorsChanged() protected method

Raises the SystemColorsChanged event.
protected OnSystemColorsChanged ( EventArgs e ) : void
e System.EventArgs The event data.
return void

OnValidating() protected method

Raises the Validating event.
protected OnValidating ( CancelEventArgs e ) : void
e CancelEventArgs The event data.
return void

OnValueChanged() protected method

Raises the OnValueChanged event.
protected OnValueChanged ( EventArgs e ) : void
e System.EventArgs The event data.
return void

PickerBase() protected method

Constructor
protected PickerBase ( Type type ) : System
type System.Type The Type of object that can be edited by this control.
return System

ProcessDialogKey() protected method

Processes a dialog key.
protected ProcessDialogKey ( Keys key ) : bool
key Keys One of the Keys values that represents the key to process.
return bool

ScaleCore() protected method

Performs the work of scaling the entire control and any child controls.
protected ScaleCore ( float dx, float dy ) : void
dx float The ratio by which to scale the control horizontally.
dy float The ratio by which to scale the control vertically.
return void

SetBoundsCore() protected method

Performs the work of setting the specified bounds of this control.
protected SetBoundsCore ( int x, int y, int width, int height, BoundsSpecified specified ) : void
x int The new Left property value of the control.
y int The new Right property value of the control.
width int The new Width property value of the control.
height int The new Height property value of the control.
specified BoundsSpecified A bitwise combination of the BoundsSpecified values.
return void