System.Classes.TCollection.SetItemName

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SetItemName(Item: TCollectionItem); virtual;

C++

virtual void __fastcall SetItemName(TCollectionItem* Item);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
System.Classes.pas
System.Classes.hpp
System.Classes TCollection

Description

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