Vcl.Grids.TStringGridStrings.GetObject

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetObject(Index: Integer): TObject; override;

C++

virtual System::TObject* __fastcall GetObject(int Index);

Properties

Type Visibility Source Unit Parent
function protected
Vcl.Grids.pas
Vcl.Grids.hpp
Vcl.Grids TStringGridStrings

Description

Returns the object associated with the string at a specified index.

Vcl.Grids.TStringGridStrings.GetObject inherits from System.Classes.TStrings.GetObject. All content below this line refers to System.Classes.TStrings.GetObject.

Returns the object associated with the string at a specified index.

GetObject is the protected read implementation of the Objects property.

Index is the index of the string with which the object is associated.

In TStrings, GetObject always returns nil (Delphi) or NULL (C++). This provides a default implementation for descendants that do not support associating objects with the strings in the list. Descendants that support this feature override GetObject to return the specified object.

See Also