Unit 'Classes' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

TCollectionItem.DisplayName

Name of the item, displayed in the object inspector.

Declaration

Source position: classesh.inc line 790

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

Description

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

TCollectionItem does not implement any functionality to store the DisplayName property. 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 DisplayName property,TCollectionItem descendants should override the TCollectionItem.SetDisplayName and TCollectionItem.GetDisplayName to add storage functionality.

See also

TCollectionItem.Index

  

Index of the item in its managing collection TCollection.Items property.

TCollectionItem.ID

  

Initial index of this item.

TCollectionItem.GetDisplayName

  

Returns the TCollectionItem.DisplayName of the collectionitem.

TCollectionItem.SetDisplayName

  

Write method for the TCollectionItem.DisplayName property.


Documentation generated on: Nov 23 2024