System.WideStrings.TWideStrings.Objects

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

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

Properties

Type Visibility Source Unit Parent
property public
System.WideStrings.pas
System.WideStrings.hpp
System.WideStrings TWideStrings

Description

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

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.

See Also