Table of Contents

Class DropdownList

Namespace
OmegaGUI.Model
Assembly
OmegaGUI.dll

Combo box control

public class DropdownList : ButtonBase, ICloneable
Inheritance
object
DropdownList
Implements
Inherited Members

Constructors

DropdownList()

public DropdownList()

Properties

Items

A list of strings selectable in the control

public MonitoredCollection<string> Items { get; }

Property Value

MonitoredCollection<string>

OnChanged

A Lua script to execute when the control's value has changed

[FileType("Lua")]
public string? OnChanged { get; set; }

Property Value

string

SelectedItem

The currently selected item in the control

public string SelectedItem { get; set; }

Property Value

string

Methods

Clone()

Creates a deep copy of this instance.

public override Control Clone()

Returns

Control

CloneDropdownList()

Creates a deep copy of this DropdownList instance.

public DropdownList CloneDropdownList()

Returns

DropdownList

The new copy of the DropdownList.

CloneFromTo(DropdownList, DropdownList)

Copies all members declared by DropdownList from one instance to another.

protected static void CloneFromTo(DropdownList from, DropdownList to)

Parameters

from DropdownList
to DropdownList