API ReferenceEditor
ComboBoxclass
Constructors1
Showing 1 constructors
No results match this filter.
Methods13
Showing 13 methods
public void AddItem(string text, string icon = null, System.Action onSelected = null, string description = null, bool selected = False, bool enabled = True)
| Parameter | Type | Description |
|---|---|---|
| text | string | — |
| icon = null | string | — |
| onSelected = null | Action | — |
| description = null | string | — |
| selected = False | bool | — |
| enabled = True | bool | — |
Returns:
void—public void Clear()
Returns:
void—public void ClearText()
Returns:
void—public System.Nullable`1<int> FindIndex(string text)
| Parameter | Type | Description |
|---|---|---|
| text | string | — |
Returns:
Nullable<int>—public void InvokeSelected()
Returns:
void—protected virtual void OnBlur(Editor.FocusChangeReason reason)
| Parameter | Type | Description |
|---|---|---|
| reason | FocusChangeReason | — |
Returns:
void—protected virtual void OnItemChanged()
Returns:
void—protected virtual void OnTextChanged()
Returns:
void—public virtual void RestoreFromStateCookie()
Returns:
void—public virtual void SaveToStateCookie()
Returns:
void—public void SetAutoComplete(System.Action`2<Editor.Menu,string> func)
| Parameter | Type | Description |
|---|---|---|
| func | Action<Menu,string> | — |
Returns:
void—public bool TrySelectNamed(string name)
| Parameter | Type | Description |
|---|---|---|
| name | string | — |
Returns:
bool—No results match this filter.
Properties11
Showing 11 properties
public bool Editor.ComboBox.AllowDuplicates { get; set; }
Returns:
bool—public Editor.AutoComplete Editor.ComboBox.AutoComplete { get; set; }
public int Editor.ComboBox.Count { get; set; }
Returns:
int—public int Editor.ComboBox.CurrentIndex { get; set; }
Returns:
int—public string Editor.ComboBox.CurrentText { get; set; }
Returns:
string—public bool Editor.ComboBox.Editable { get; set; }
Returns:
bool—public Editor.ComboBox.InsertMode Editor.ComboBox.Insertion { get; set; }
public int Editor.ComboBox.MaxVisibleItems { get; set; }
Returns:
int—public System.Action Editor.ComboBox.OnReturn { get; set; }
Returns:
Action—public string Editor.ComboBox.StateCookie { get; set; }
Returns:
string—No results match this filter.