[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'Classes' (#rtl)

TCollectionItem.DisplayName

Name of the item, displayed in the object inspector.

Declaration

Source position: classesh.inc line 366

public property TCollectionItem.DisplayName: String
  read GetDisplayName
  write SetDisplayName;

Description

DisplayNamecontains the name of this item as shown in the object inspector. For TCollectionItemthis returns always the class name of the managing collection, followed by the index of the item.

TCollectionItemdoes not implement any functionality to store the DisplayNameproperty. The property can be set, but this will have no effect other than that the managing collection is notified of a change. The actual displayname will remain unchanged. To store the DisplayNameproperty,TCollectionItemdescendants should override the TCollectionItem.SetDisplayNameand TCollectionItem.GetDisplayNameto add storage functionality.

See also

TCollectionItem.Index

  

Index of the item in its managing collection TCollection.Itemsproperty.

TCollectionItem.ID

  

Initial index of this item.

TCollectionItem.GetDisplayName

  

Returns the TCollectionItem.DisplayNameof the collectionitem

TCollectionItem.SetDisplayName

  

Write method for the TCollectionItem.DisplayNameproperty