Data.Bind.ObjectScope.TBindFieldDefs.SetItemName
Delphi
procedure SetItemName(AItem: TCollectionItem); override;
C++
virtual void __fastcall SetItemName(System::Classes::TCollectionItem* AItem);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Data.Bind.ObjectScope.pas Data.Bind.ObjectScope.hpp |
Data.Bind.ObjectScope | TBindFieldDefs |
Description
Initializes the name of a newly inserted collection item.
Data.Bind.ObjectScope.TBindFieldDefs.SetItemName inherits from System.Classes.TCollection.SetItemName. All content below this line refers to System.Classes.TCollection.SetItemName.
Initializes the name of a newly inserted collection item.
The Insert method calls SetItemName to initialize the Name property of items when it inserts them into the collection.
As implemented in TCollection, SetItemName does nothing. Some TCollection descendants override this method to provide collection items with default names.