Show: Delphi C++
Display Preferences


From RAD Studio API Documentation
Jump to: navigation, search


property Objects[Index: Integer]: TObject read GetObject write PutObject;


__property System::TObject* Objects[int Index] = {read=GetObject, write=PutObject};


Type Visibility Source Unit Parent
property public
System.Classes TStrings


Represents a set of objects that are associated one with each of the strings in the Strings property.

Setting the Objects property for TStrings has no effect. Reading the Objects property for TStrings returns nil (Delphi) or NULL (C++). Descendant classes can associate objects with the strings in the set by implementing the Objects property.

Use the Objects property of a descendant of TStrings to get or set the object associated with the string at the position indicated by Index. Index gives the position of the string associated with the object, where 0 is the first string, 1 is the second string, and so on. If a descendant of TStrings does not support the Objects property, reading this property returns nil (Delphi) or NULL (C++).

Note: The TStrings object does not own the objects in the Objects array. Objects added to the Objects array still exist even if the TStrings object is destroyed. They must be explicitly destroyed by the application.

See Also

Code Examples

Personal tools
In Other Languages
Previous Versions