ListItem

Description

An item in a list box, drop-down list, or tree view.

You can specify initial items in the creation parameters when creating the parent list. Create new items using the add() method (ListBox.add(), DropDownList.add(), TreeView.add()) in the parent list with control type=”item”, or, for?DropDownList?controls, type=”separator”.For a multi-column list box, the object represents one selectable row. Its?text?and?image?values specify the label in the first column, and the?subitems?property specifies the labels in the additional columns.

Properties

checked readonly The checked state of an item in a list.
expanded readonly The expansion state of an item of type node that is a child of a?TreeView?list control.
image readonly An image object for an icon to display in the item.
index readonly The 0-based index of this item in the items collection of its parent list control.
parent readonly The parent element, a list control.
properties readonly An object that contains one or more creation properties of the item (properties used only when the element is created).
selected readonly The selection state of this item.
subItems readonly When the parent is a multi-column?ListBox, this describes the labels for this selectable row in additional columns.
text readonly The label text to display for the item, a localizable string.
type readonly The element type.