Data.Bind.ObjectScope.TGeneratorFieldDefs.GetItemAttr
Delphi
function GetItemAttr(Index, ItemIndex: Integer): string; override;
C++
DYNAMIC System::UnicodeString __fastcall GetItemAttr(int Index, int ItemIndex);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Data.Bind.ObjectScope.pas Data.Bind.ObjectScope.hpp |
Data.Bind.ObjectScope | TGeneratorFieldDefs |
Description
Returns the value of a custom attribute assigned to one of the collection's items.
Data.Bind.ObjectScope.TGeneratorFieldDefs.GetItemAttr inherits from System.Classes.TCollection.GetItemAttr. All content below this line refers to System.Classes.TCollection.GetItemAttr.
Returns the value of a custom attribute assigned to one of the collection's items.
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, which is a string. GetItemAttr returns the value of one of these attributes for a specified item in the collection.
Index
identifies which of the attribute's values is desired. This is a value between 0 and n-1, where n is the value returned by GetAttrCount.
ItemIndex
identifies the item whose attribute value is desired. This is an index into the Items property array.
As implemented in TCollection, GetItemAttr always returns an empty string, because TCollection defines no custom attributes.