Show / Hide Table of Contents

    Class ComboBox

    ComboBox control
    Inheritance
    System.Object
    Responder
    View
    ComboBox
    Implements
    System.Collections.IEnumerable
    Inherited Members
    View.Enter
    View.Leave
    View.MouseEnter
    View.MouseLeave
    View.Driver
    View.Subviews
    View.Id
    View.IsCurrentTop
    View.WantMousePositionReports
    View.WantContinuousButtonPressed
    View.Frame
    View.GetEnumerator()
    View.LayoutStyle
    View.Bounds
    View.X
    View.Y
    View.Width
    View.Height
    View.SuperView
    View.SetNeedsDisplay()
    View.SetNeedsDisplay(Rect)
    View.ChildNeedsDisplay()
    View.Add(View)
    View.Add(View[])
    View.RemoveAll()
    View.Remove(View)
    View.BringSubviewToFront(View)
    View.SendSubviewToBack(View)
    View.SendSubviewBackwards(View)
    View.BringSubviewForward(View)
    View.Clear()
    View.Clear(Rect)
    View.ScreenToView(Int32, Int32)
    View.ClipToBounds()
    View.SetClip(Rect)
    View.DrawFrame(Rect, Int32, Boolean)
    View.DrawHotString(ustring, Attribute, Attribute)
    View.DrawHotString(ustring, Boolean, ColorScheme)
    View.Move(Int32, Int32)
    View.PositionCursor()
    View.HasFocus
    View.OnLeave()
    View.Focused
    View.MostFocused
    View.ColorScheme
    View.AddRune(Int32, Int32, Rune)
    View.ClearNeedsDisplay()
    View.Redraw(Rect)
    View.SetFocus(View)
    View.KeyPress
    View.ProcessHotKey(KeyEvent)
    View.ProcessColdKey(KeyEvent)
    View.KeyDown
    View.OnKeyDown(KeyEvent)
    View.KeyUp
    View.OnKeyUp(KeyEvent)
    View.EnsureFocus()
    View.FocusFirst()
    View.FocusLast()
    View.FocusPrev()
    View.FocusNext()
    View.LayoutSubviews()
    View.ToString()
    View.OnMouseEnter(MouseEvent)
    View.OnMouseLeave(MouseEvent)
    Responder.CanFocus
    Responder.MouseEvent(MouseEvent)
    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
    View.OnEnter()

    ProcessKey(KeyEvent)

    Declaration
    public override bool ProcessKey(KeyEvent e)
    Parameters
    Type Name Description
    KeyEvent e
    Returns
    Type Description
    System.Boolean
    Overrides
    View.ProcessKey(KeyEvent)

    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
    Back to top Generated by DocFX