C# Класс AnimatGuiCtrls.Controls.DropDownControlBase

Наследование: System.Windows.Forms.Control
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
GetDropDownButtonState ComboBoxState
GetPlainButtonState ButtonState
GetTextBoxBounds System.Drawing.Rectangle
GetTextBoxState ComboBoxState
SetHeight void

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

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

Creates a new instance of DropDownControlBase.

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

Метод Описание
IsInputKey ( Keys keyData ) : bool

Registers the arrow keys as input keys.

OnDropDown ( EventArgs e ) : void

Raises the DropDown event.

OnDropDownButtonClick ( EventArgs e ) : void

Raised the DropDownButtonClick event.

OnDropDownClosed ( EventArgs e ) : void

Raises the DropDownClosed event.

OnFontChanged ( EventArgs e ) : void

Recalculates the fixed height of the control when the font changes.

OnGotFocus ( EventArgs e ) : void

Repaints the focus rectangle when focus changes.

OnLostFocus ( EventArgs e ) : void

Repaints the focus rectangle when focus changes.

OnMouseClick ( MouseEventArgs e ) : void

Determines when to raise the DropDownButtonClick event.

OnMouseDown ( MouseEventArgs e ) : void

Repaints the control when a mouse button is pressed.

OnMouseEnter ( EventArgs e ) : void

Repaints the control when the mouse enters its bounds.

OnMouseLeave ( EventArgs e ) : void

Repaints the control when the mouse leaves its bounds.

OnMouseMove ( MouseEventArgs e ) : void

Repaints the control when the mouse is moved over the control.

OnMouseUp ( MouseEventArgs e ) : void

Repaints the control when a mouse button is released.

OnPaint ( PaintEventArgs e ) : void

Paints the control.

OnPaintContent ( DropDownPaintEventArgs e ) : void

Paints the content in the editable portion of the control, providing additional measurements and operations.

OnSizeChanged ( EventArgs e ) : void

Recalculates the bounds for the dropdown button when the control's size changes.

Приватные методы

Метод Описание
GetDropDownButtonState ( ) : ComboBoxState

Determines the state in which to render the dropdown button portion of the control (when using visual styles).

GetPlainButtonState ( ) : ButtonState

Determines the state in which to render the dropdown button portion of the control (when not using visual styles).

GetTextBoxBounds ( ) : Rectangle

Gets the bounds of the textbox portion of the control by subtracting the dropdown button bounds from the client rectangle.

GetTextBoxState ( ) : ComboBoxState

Determines the state in which to render the textbox portion of the control (when using visual styles).

SetHeight ( ) : void

Sets the fixed height of the control, based on the font size.

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

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

Creates a new instance of DropDownControlBase.
public DropDownControlBase ( ) : System
Результат System

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

Registers the arrow keys as input keys.
protected IsInputKey ( Keys keyData ) : bool
keyData Keys
Результат bool

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

Raises the DropDown event.
protected OnDropDown ( EventArgs e ) : void
e System.EventArgs
Результат void

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

Raised the DropDownButtonClick event.
protected OnDropDownButtonClick ( EventArgs e ) : void
e System.EventArgs
Результат void

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

Raises the DropDownClosed event.
protected OnDropDownClosed ( EventArgs e ) : void
e System.EventArgs
Результат void

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

Recalculates the fixed height of the control when the font changes.
protected OnFontChanged ( EventArgs e ) : void
e System.EventArgs
Результат void

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

Repaints the focus rectangle when focus changes.
protected OnGotFocus ( EventArgs e ) : void
e System.EventArgs
Результат void

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

Repaints the focus rectangle when focus changes.
protected OnLostFocus ( EventArgs e ) : void
e System.EventArgs
Результат void

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

Determines when to raise the DropDownButtonClick event.
protected OnMouseClick ( MouseEventArgs e ) : void
e MouseEventArgs
Результат void

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

Repaints the control when a mouse button is pressed.
protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs
Результат void

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

Repaints the control when the mouse enters its bounds.
protected OnMouseEnter ( EventArgs e ) : void
e System.EventArgs
Результат void

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

Repaints the control when the mouse leaves its bounds.
protected OnMouseLeave ( EventArgs e ) : void
e System.EventArgs
Результат void

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

Repaints the control when the mouse is moved over the control.
protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
Результат void

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

Repaints the control when a mouse button is released.
protected OnMouseUp ( MouseEventArgs e ) : void
e MouseEventArgs
Результат void

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

Paints the control.
protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
Результат void

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

Paints the content in the editable portion of the control, providing additional measurements and operations.
protected OnPaintContent ( DropDownPaintEventArgs e ) : void
e DropDownPaintEventArgs
Результат void

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

Recalculates the bounds for the dropdown button when the control's size changes.
protected OnSizeChanged ( EventArgs e ) : void
e System.EventArgs
Результат void