Skip to main content

ListBox Class

Package: GHIElectronics.Endpoint.UI
Namespace: GHIElectronics.Endpoint.UI

Vertical scrollable list. ListBox.AddItem returns a handle whose Clicked event you subscribe to.

public class ListBox : Widget

Constructors​

ListBox(Widget parent)​

public ListBox(Widget parent)

Create a list box inside parent.

ParameterTypeDescription
parentWidgetContaining widget.

Methods​

AddItem(string text)​

public ListBoxItem AddItem(string text)

Append an item.

ParameterTypeDescription
textstringRow text.

Returns ListBoxItem: Handle for subscribing to the row's ListBoxItem.Clicked event.

Clear()​

public void Clear()

Remove every item.