TdxListItems Class
A list item collection.
Declaration
TdxListItems = class(
TPersistent
)
Remarks
The TdxListItems class members allow you to do the following:
- Add items (Add and Insert).
- Delete items (Delete and Clear).
- Count items (Count).
- Access items (Items and GetItemAtPos).
- Obtain an item’s index in the collection (IndexOf).
- Access the collection’s owner (ListView).
- Manage List View updates (BeginUpdate and EndUpdate).
The List View’s Items property references a TdxListItems object.
Example
The following code checks all items in the List View control:
var
AItem: TdxListItem;
begin
dxListViewControl1.BeginUpdate;
for AItem in dxListViewControl1.Items do
AItem.Checked := True;
dxListViewControl1.EndUpdate;
end;
Note
A List View control shows item checkboxes if the control’s Checkboxes property is set to True.
Inheritance
TObject
TPersistent
TdxListItems
See Also