DesignIntf.TDesignerSelections.Add

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: protected
Source:
DesignIntf.pas
DesignIntf.hpp
Unit: DesignIntf
Parent: TDesignerSelections

Delphi

function Add(const Item: TPersistent): Integer;

C++

int __fastcall Add(System::Classes::TPersistent* const Item);

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.

See Also