IListView.Items

Syntax

Items: IListViewItems;

Description

The Items property returns the collection of all elements of the ListView component.

Comments

The elements are added and their properties are edited in the window of the Element Editor . To open this window the user should:

Each element can contain icon and text. If the component contains more than one column, make single mouse button click on the intersection of the selected element and necessary column to edit the element value in another column. The value edit window should be opened in a few seconds.

Depending on the value of the Style property, it is necessary to select the ImageList (or GlobalImageList) component in the LargeImages and SmallImages properties to display the icon next to the element name. The index of the icon displayed next to the element name is selected in the Icon edit box of the element editor or in the ImageIndex property.

The second icon that allows to display the additional state of the element (State icon) can also be added to each element. The ImageList (or GlobalImageList) component should be selected in the StateImages property to do it. The index of the additional icon displayed near the name of the element, is selected in the Icon Sate edit field of the element editor or in the StateIndex property.

Example

See also:

IListView