Class ComboBox
ComboBox control
Implements
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Terminal.Gui
Assembly: Terminal.Gui.dll
Syntax
public class ComboBox : View, IEnumerable
Constructors
ComboBox(Int32, Int32, Int32, Int32, IList<String>)
Public constructor
Declaration
public ComboBox(int x, int y, int w, int h, IList<string> source)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | x | The x coordinate |
System.Int32 | y | The y coordinate |
System.Int32 | w | The width |
System.Int32 | h | The height |
System.Collections.Generic.IList<System.String> | source | Auto completetion source |
Properties
Text
The currenlty selected list item
Declaration
public ustring Text { get; set; }
Property Value
Type | Description |
---|---|
NStack.ustring |
Methods
OnEnter()
Declaration
public override bool OnEnter()
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
ProcessKey(KeyEvent)
Declaration
public override bool ProcessKey(KeyEvent e)
Parameters
Type | Name | Description |
---|---|---|
KeyEvent | e |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
Events
Changed
Changed event, raised when the selection has been confirmed.
Declaration
public event EventHandler<ustring> Changed
Event Type
Type | Description |
---|---|
System.EventHandler<NStack.ustring> |
Remarks
Client code can hook up to this event, it is
raised when the selection has been confirmed.
Implements
System.Collections.IEnumerable