Table of Contents

Class ListBox

Namespace
OmegaGUI.Model
Assembly
OmegaGUI.dll

List box control

public class ListBox : Control, ICloneable
Inheritance
object
ListBox
Implements
Inherited Members

Constructors

ListBox()

public ListBox()

Properties

Items

A list of strings selectable in the control

public MonitoredCollection<string> Items { get; }

Property Value

MonitoredCollection<string>

OnDoubleClick

A Lua script to execute when the user double-clicks onto an entry

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

Property Value

string

OnSelection

A Lua script to execute when the user selects an entry

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

Property Value

string

SelectedItem

The currently selected item in the control

public string SelectedItem { get; set; }

Property Value

string

Style

The style of the list box

public ListBoxStyle Style { get; set; }

Property Value

ListBoxStyle

Methods

Clone()

Creates a deep copy of this instance.

public override Control Clone()

Returns

Control

CloneFromTo(ListBox, ListBox)

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

protected static void CloneFromTo(ListBox from, ListBox to)

Parameters

from ListBox
to ListBox

CloneListBox()

Creates a deep copy of this ListBox instance.

public ListBox CloneListBox()

Returns

ListBox

The new copy of the ListBox.