DesignIntf.TDesignerSelections.Add
Delphi
function Add(const Item: TPersistent): Integer;
C++
int __fastcall Add(System::Classes::TPersistent* const Item);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | DesignIntf.pas DesignIntf.hpp |
DesignIntf | TDesignerSelections |
Description
Adds a new object to the end of the list.
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.
Note: Add is a protected method. To call this method you must use the IDesignerSelections interface.