Show / Hide Table of Contents

Class ComboBox

Represents a Cegui combo box

Inheritance
Object
Element
GuiElement
ComboBox
Inherited Members
GuiElement.Visible
GuiElement.Alpha
GuiElement.Enabled
GuiElement.StandardFont
GuiElement.CustomFont
GuiElement.Position
GuiElement.RelativePosition
GuiElement.Size
GuiElement.RelativeSize
GuiElement.Content
GuiElement.BringToFront()
GuiElement.MoveToBack()
GuiElement.Blur()
GuiElement.Focus()
GuiElement.SetProperty(String, String)
GuiElement.GetProperty(String)
GuiElement.OnBlur
GuiElement.OnFocus
GuiElement.OnClick
GuiElement.OnDoubleClick
GuiElement.OnMouseDown
GuiElement.OnMouseUp
GuiElement.OnMove
GuiElement.OnResize
GuiElement.OnMouseEnter
GuiElement.OnMouseLeave
GuiElement.OnMouseMove
GuiElement.OnMouseWheel
Element.element
Element.Root
Element.MTAElement
Element.Type
Element.ID
Element.Exists
Element.ChildCount
Element.Parent
Element.CallPropagationEnabled
Element.SetData(String, Object, Boolean)
Element.GetData(String, Boolean)
Element.TryGetData(String, Object, Boolean)
Element.GetData<T>(String, Boolean)
Element.TryGetData<T>(String, T, Boolean)
Element.Destroy()
Element.GetChild(Int32)
Element.GetChildren(String)
Element.GetByID(String, Int32)
Element.ListenForEvent(String, Boolean, String)
Element.HandleEvent(String, MtaElement, Object, Object, Object, Object, Object, Object, Object, Object)
Element.OnDestroy
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Slipe.Client.Gui
Assembly: SlipeClient.dll
Syntax
[DefaultElementClass(ElementType.GuiComboBox)]
public class ComboBox : GuiElement

Constructors

| Improve this Doc View Source

ComboBox(Vector2, Vector2, String, Boolean, GuiElement)

Create a new combo box

Declaration
public ComboBox(Vector2 position, Vector2 dimensions, string caption, bool relative = false, GuiElement parent = null)
Parameters
Type Name Description
Vector2 position
Vector2 dimensions
String caption
Boolean relative
GuiElement parent

Properties

| Improve this Doc View Source

ItemCount

The amount of items in this combo box

Declaration
public int ItemCount { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

Open

Get or set if the combo box is open or not

Declaration
public bool Open { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

Selected

Get and set the selected item

Declaration
public ComboBoxItem Selected { get; set; }
Property Value
Type Description
ComboBoxItem

Methods

| Improve this Doc View Source

AddItem(String)

Add a new item

Declaration
public ComboBoxItem AddItem(string content)
Parameters
Type Name Description
String content
Returns
Type Description
ComboBoxItem
| Improve this Doc View Source

Clear()

Remove all items from this combo box

Declaration
public bool Clear()
Returns
Type Description
Boolean
| Improve this Doc View Source

RemoveItem(ComboBoxItem)

Remove a specific item from the combo box

Declaration
public bool RemoveItem(ComboBoxItem item)
Parameters
Type Name Description
ComboBoxItem item
Returns
Type Description
Boolean

Events

| Improve this Doc View Source

OnAccepted

Declaration
public event ComboBox.OnAcceptedHandler OnAccepted
Event Type
Type Description
ComboBox.OnAcceptedHandler
  • Improve this Doc
  • View Source
Back to top Generated by DocFX