ListBox Properties
The properties defined in the ListBox class are summarized in the following table.
Property | Description |
---|---|
alternatingRowBackColor | Specifies an alternate row background color |
alternatingRowBackColorCount | Specifies the number of list entry or table rows at which the alternating background color of each visible list entry, non‑fixed row, and non‑fixed cell is displayed |
defaultLineHeight | Specifies the default height of lines in a list box independent of the font size |
hasPictures | Specifies whether the picture images are displayed |
hasPlusMinus | Specifies whether plus/minus images are displayed |
hasTreeLines | Specifies whether the tree lines are drawn |
integralHeight | Specifies whether the list box height shows partial lines |
itemBackColor | Contains the background color of each item |
itemData | Contains a specific number for each item |
itemEnabled | Specifies whether individual items are disabled or enabled |
itemExpanded | Contains the expansion (or collapse) status of each item |
itemForeColor | Contains the text color of each item |
itemLevel | Contains the hierarchical level of each item |
itemObject | Contains an object for each entry |
itemPicture | Contains individual items to assign to a picture |
itemPictureType | Contains the type of picture of each item |
itemSelected | Contains the selection status of each item |
itemText | Contains the text of an item |
listIndex | Contains the index of the currently selected item |
listObject | Contains the associated object of the currently selected item |
multiSelect | Specifies whether a user can make multiple selections |
nameSeparator | Contains the item delimiter string used when accessing the itemFullName method |
pictureClosed | Contains the qualifying picture image displayed for an entry |
pictureLeaf | Contains the qualifying picture image displayed for an entry |
pictureMinus | Contains the qualifying picture image displayed for an entry |
pictureOpen | Contains the qualifying picture image displayed for an entry |
picturePlus | Contains the qualifying picture image displayed for an entry |
scrollBars | Contains the scroll bars that can be displayed when text extends beyond the client window co-ordinates of the control |
scrollHorizontal | Specifies whether a horizontal scroll bar is added when a line item does not fit horizontally |
scrollHorzPos | Contains the position of the horizontal scroll bar |
sortAsc | Specifies whether the sorting is ascending or descending |
sortCased | Specifies whether the sorting is case-sensitive |
sorted | Specifies whether the elements are automatically sorted alphabetically |
text | Contains the text of an item |
topIndex | Contains the item that is the first item displayed in the list |
For details, see "Window, Form, and Control Properties", later in this document.