Api Editor ComboBox
class

ComboBox

public class ComboBox : Widget

Constructors

ComboBox(Widget parent)

Properties

Name Type Description
StateCookie String
LineEdit LineEdit
CurrentText String
CurrentIndex Int32
Count Int32
AllowDuplicates Boolean
MaxVisibleItems Int32
Editable Boolean
Insertion InsertMode
OnReturn Action
AutoComplete AutoComplete

Methods

virtual Void RestoreFromStateCookie()
virtual Void SaveToStateCookie()
Int32? FindIndex(String text)
Boolean TrySelectNamed(String name)
Void ClearText()
Void Clear()
Void AddItem(String text, String icon = null, Action onSelected = null, String description = null, Boolean selected = False, Boolean enabled = True)
Void InvokeSelected()
Void SetAutoComplete(Action<Menu, String> func)
Assembly: Sandbox.Tools Namespace: Editor Full Name: Editor.ComboBox