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
Afficher le fichier Open project: powerumc/vsgesture Class Usage Examples

Méthodes protégées

Méthode 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

Méthode 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 méthode

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.
Résultat bool

OnBackColorChanged() protected méthode

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

OnCursorChanged() protected méthode

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

OnEnabledChanged() protected méthode

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

OnEnter() protected méthode

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

OnFontChanged() protected méthode

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

OnForeColorChanged() protected méthode

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

OnGotFocus() protected méthode

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

OnHandleCreated() protected méthode

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

OnKeyDown() protected méthode

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

OnKeyPress() protected méthode

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

OnLeave() protected méthode

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

OnMouseDown() protected méthode

Raises the MouseDown event.
protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs The event data.
Résultat void

OnMouseWheel() protected méthode

Raises the MouseWheel event.
protected OnMouseWheel ( MouseEventArgs e ) : void
e MouseEventArgs The event data.
Résultat void

OnPaint() protected méthode

Raises the Paint event.
protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs The event data.
Résultat void

OnReadOnlyChanged() protected méthode

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

OnSystemColorsChanged() protected méthode

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

OnValidating() protected méthode

Raises the Validating event.
protected OnValidating ( CancelEventArgs e ) : void
e CancelEventArgs The event data.
Résultat void

OnValueChanged() protected méthode

Raises the OnValueChanged event.
protected OnValueChanged ( EventArgs e ) : void
e System.EventArgs The event data.
Résultat void

PickerBase() protected méthode

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

ProcessDialogKey() protected méthode

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

ScaleCore() protected méthode

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.
Résultat void

SetBoundsCore() protected méthode

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.
Résultat void