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

TdxFastList.DeleteRange(Integer,Integer) Method

Deletes a number of stored pointers, starting from the specified position within the list.

#Declaration

Delphi
procedure DeleteRange(AIndex: Integer; ACount: Integer);

#Parameters

Name Type
AIndex Integer
ACount Integer

#Remarks

Call this procedure and pass the index of the first stored pointer to delete and the total number of pointers you need to delete as the AIndex and ACount parameters, respectively. The DeleteRange procedure decrements the Count property value by the number of deleted pointers and shifts any remaining pointers at the end of the original list to the first deleted pointer’s position.

The “Argument out of range” exception occurs if the beginning or end of the specified range goes beyond the full range of pointers stored in the list.

Note

Call the Delete procedure instead if you need to delete only a single pointer in the list.

See Also