API ReferenceEditor
public class Editor.ComboBox : Editor.Widget
Constructors
Showing 1 constructors
No results match this filter.
Methods
Showing 13 methods
public void AddItem(string text, string icon = null, System.Action onSelected = null, string description = null, bool selected = False, bool enabled = True)
Parameters
icon: Default: nullonSelected: Default: nulldescription: Default: nullselected: Default: Falseenabled: Default: True
public void Clear()
public void ClearText()
public System.Nullable`1<int> FindIndex(string text)
public void InvokeSelected()
protected virtual void OnBlur(Editor.FocusChangeReason reason)
protected virtual void OnItemChanged()
protected virtual void OnKeyPress(Editor.KeyEvent e)
protected virtual void OnTextChanged()
public virtual void RestoreFromStateCookie()
public virtual void SaveToStateCookie()
public void SetAutoComplete(System.Action`2<Editor.Menu,string> func)
public bool TrySelectNamed(string name)
No results match this filter.
Properties
Showing 11 properties
public bool Editor.ComboBox.AllowDuplicates { get; set; }
public Editor.AutoComplete Editor.ComboBox.AutoComplete { get; set; }
public int Editor.ComboBox.Count { get; set; }
public int Editor.ComboBox.CurrentIndex { get; set; }
public string Editor.ComboBox.CurrentText { get; set; }
public bool Editor.ComboBox.Editable { get; set; }
public Editor.ComboBox.InsertMode Editor.ComboBox.Insertion { get; set; }
public int Editor.ComboBox.MaxVisibleItems { get; set; }
public System.Action Editor.ComboBox.OnReturn { get; set; }
public string Editor.ComboBox.StateCookie { get; set; }
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Editor |
| Type | class |
| Assembly | Sandbox.Tools |
| Doc ID | T:Editor.ComboBox |