Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxDynamicItemList.LastIndex Property

Returns the last stored item‘s position within the sparse item list.

#Declaration

Delphi
property LastIndex: Integer read;

#Property Value

Type
Integer

#Remarks

You can use the FirstIndex and LastIndex properties to obtain the first and last occupied positions within the sparse list. The LastIndex property returns -1 if the list is empty; otherwise, it returns the last item’s index.

The Count property always returns the LastIndex property value plus one.

Note

The FirstIndex and LastIndex property values match if the dynamic list contains only one item.

See Also