RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWideStrings.Objects Property

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

Pascal
property Objects [Index: Integer]: TObject;
C++
__property TObject * Objects[int Index];

Setting the Objects property for TWideStrings does nothing. Reading the Objects property for TWideStrings 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 TWideStrings 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 TWideStrings does not support the Objects property, reading this property returns nil (Delphi) or NULL (C++).

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

 

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