Data.Bind.ObjectScope.TBindFieldDefs.SetItemName

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: protected
Source:
Data.Bind.ObjectScope.pas
Data.Bind.ObjectScope.hpp
Unit: Data.Bind.ObjectScope
Parent: TBindFieldDefs

Delphi

procedure SetItemName(AItem: TCollectionItem); override;

C++

virtual void __fastcall SetItemName(System::Classes::TCollectionItem* AItem);

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.

See Also