[Overview][Constants][Types][Classes][Procedures and functions][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
TListItems - a list of items with a cache of the last accessed item.
Source position: comctrls.pp line 1128
type TListItems = class(TPersistent) |
||
protected |
||
procedure DefineProperties(); override; |
|
DefineProperties - calls inherited method, then defines some specific binary properties. |
function GetCount; virtual; |
|
GetCount - find the number of Items in the list. |
function GetItem(); virtual; |
|
GetItem returns the ListItem specified by AIndex. |
function GetOwner; override; |
|
Gets the owner of the persistent object. |
procedure WSCreateItems; |
|
WSCreateItems - instruction to the widgetset to create Items. |
procedure DoFinalizeWnd; |
|
Updates flags in the class instance when the widgetset handle is freed. |
procedure SetCount(); virtual; |
|
Sets the value for the Count property. |
procedure SetItem(); |
|
SetItem - writes the Index and content of a given Item to a local variable. |
procedure ClearSelection; |
|
Clears the selected state for all TListItem instances in the class. |
procedure SelectAll; |
|
Sets the selected state for all TListItem instances in the class. |
public |
||
function Add; |
|
Add an Item to the Collection. |
procedure AddItem(); |
|
AddItem - add the specified AItem to the collection. |
procedure BeginUpdate; |
|
BeginUpdate - start the update process. |
procedure Clear; virtual; |
|
Clear - remove all Items from the list. |
constructor Create(); |
|
Create - constructor for TListItems: calls inherited Create then creates the list. |
destructor Destroy; override; |
|
Destroy destructor for TListItems: frees the individual items on the list, then calls inherited Destroy. |
procedure Delete(); |
|
Remove the Item specified by AIndex from the collection. |
procedure EndUpdate; |
|
EndUpdate - finish the update process. |
procedure Exchange(); |
|
Exchanges the list items stored at the specified positions. |
procedure Move(); |
|
Moves the list item at the specified position to a new position in the list. |
function FindCaption(); |
|
FindCaption - returns the ListItem with the specified caption at the given starting place. |
function FindData(); |
|
FindData - returns the ListItem associated with the specified data pointer. |
function GetEnumerator; |
|
Gets an enumerator for the Item values in the list. |
function IndexOf(); |
|
Gets the ordinal position in the list for the specified list item. |
function Insert(); |
|
Insert an item in the list at AIndex, returning the value of the ListItem. |
procedure InsertItem(); |
|
InsertItem - procedure to insert AItem at position AIndex in the list. |
property Flags: TListItemsFlags; [r] |
|
Contains the flag values currently assigned to the list. |
property Count: Integer; [rw] |
|
Count - the number of items in the collection. |
|
An Item in the list, specified by its Index value. |
|
property Owner: TCustomListView; [r] |
|
Owner - the ListView that owns this collection of ListItems. |
end; |
|
TListItems - a list of items with a cache of the last accessed item. |
|
| | ||
TPersistent |
||
? | ||
TObject |
TListitems has a built-in cache for the last accessed item. This will speed up interface updates since Item.Index is often used for the same item updating more properties. If FCacheIndex contains -1 then the cache is not valid.