C# Class Flood.GUI.Controls.ComboBox

ComboBox control.
Inheritance: Button
Afficher le fichier Open project: FloodProject/flood Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
AddItem ( String label, String name = "" ) : MenuItem

Adds a new item.

Close ( ) : void

Closes the combo.

ComboBox ( Control parent ) : System

Initializes a new instance of the ComboBox class.

DeleteAll ( ) : void

Removes all items.

Open ( ) : void

Opens the combo.

Méthodes protégées

Méthode Description
Layout ( Skins skin ) : void

Lays out the control's interior according to alignment, padding, dock etc.

OnClicked ( ) : void

Internal Pressed implementation.

OnItemSelected ( Control control ) : void

Internal handler for item selected event.

OnKeyDown ( bool down ) : bool

Handler for Down Arrow keyboard event.

OnKeyUp ( bool down ) : bool

Handler for Up Arrow keyboard event.

OnKeyboardFocus ( ) : void

Handler for gaining keyboard focus.

OnLostKeyboardFocus ( ) : void

Handler for losing keyboard focus.

Render ( Skins skin ) : void

Renders the control using specified skin.

RenderFocus ( Skins skin ) : void

Renders the focus overlay.

Method Details

AddItem() public méthode

Adds a new item.
public AddItem ( String label, String name = "" ) : MenuItem
label String Item label (displayed).
name String Item name.
Résultat MenuItem

Close() public méthode

Closes the combo.
public Close ( ) : void
Résultat void

ComboBox() public méthode

Initializes a new instance of the ComboBox class.
public ComboBox ( Control parent ) : System
parent Control Parent control.
Résultat System

DeleteAll() public méthode

Removes all items.
public DeleteAll ( ) : void
Résultat void

Layout() protected méthode

Lays out the control's interior according to alignment, padding, dock etc.
protected Layout ( Skins skin ) : void
skin Skins Skin to use.
Résultat void

OnClicked() protected méthode

Internal Pressed implementation.
protected OnClicked ( ) : void
Résultat void

OnItemSelected() protected méthode

Internal handler for item selected event.
protected OnItemSelected ( Control control ) : void
control Control Event source.
Résultat void

OnKeyDown() protected méthode

Handler for Down Arrow keyboard event.
protected OnKeyDown ( bool down ) : bool
down bool Indicates whether the key was pressed or released.
Résultat bool

OnKeyUp() protected méthode

Handler for Up Arrow keyboard event.
protected OnKeyUp ( bool down ) : bool
down bool Indicates whether the key was pressed or released.
Résultat bool

OnKeyboardFocus() protected méthode

Handler for gaining keyboard focus.
protected OnKeyboardFocus ( ) : void
Résultat void

OnLostKeyboardFocus() protected méthode

Handler for losing keyboard focus.
protected OnLostKeyboardFocus ( ) : void
Résultat void

Open() public méthode

Opens the combo.
public Open ( ) : void
Résultat void

Render() protected méthode

Renders the control using specified skin.
protected Render ( Skins skin ) : void
skin Skins Skin to use.
Résultat void

RenderFocus() protected méthode

Renders the focus overlay.
protected RenderFocus ( Skins skin ) : void
skin Skins Skin to use.
Résultat void