Skip to content

ListBox

SirePi edited this page Dec 1, 2016 · 1 revision

A ListBox is a complex Control which includes a ScrollBar and a number of ToggleButtons, and is used to select one or more items from a list. Derives from CompositeControl.

In addition to the CompositeControl's base properties and delegates, it also exposes:

  • Property MultiSelection - if set to true, allows for more than one item to be selected at the same time.
  • Property ListBoxConfiguration - the ListBox's ListBoxConfiguration object.
  • Property TextConfiguration - the ListBox's TextConfiguration object.
  • Property ScrollBarConfiguration - the ListBox's ScrollBarConfiguration object.
  • Property SelectedItems - the list of objects currently selected in the ListBox.

In order to set the items that can be selected in the ListBox, the method SetItems(IEnumerable items) is available.

Clone this wiki locally