RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IDesignerSelections.Add Method

Adds a new object to the end of the list.

Pascal
function Add(const Item: TPersistent): Integer;
C++
__fastcall int Add(const TPersistent * Item);

Call Add to insert a new object at the end of the Items array. Add returns the index of the new item, where the first item in the list has an index of 0. Add increases the value of Count to reflect the addition of a new object. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!