API:Data.Bind.Components.TFormatExpressions.GetAttr

From RAD Studio API Documentation

Delphi

function GetAttr(Index: Integer): string; override;

C++

DYNAMIC System::UnicodeString __fastcall GetAttr(int Index);

Properties

Type Visibility Source Unit Parent
function protected
Data.Bind.Components.pas
Data.Bind.Components.hpp
Data.Bind.Components TFormatExpressions

Description

Returns the name of a custom attribute that can be retrieved using the GetItemAttr method. {{#multireplace:Data.Bind.Components.TFormatExpressions.GetAttr|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} inherits from {{#multireplace:System.Classes.TCollection.GetAttr|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. All content below this line refers to {{#multireplace:System.Classes.TCollection.GetAttr|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.

Returns the name of a custom attribute that can be retrieved using the GetItemAttr method.

TCollection descendants can associate user-defined attributes with the items in the collection. Each attribute has a name and, for each item in the collection, a value that is a string. The GetAttr method returns the name of an attribute.

Index identifies the attribute whose name is requested. This is a value between 0 and n-1, where n is the value returned by GetAttrCount.

As implemented by TCollection, GetAttr always returns an empty string, because TCollection defines no custom attributes.

See Also