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

# TCollectionItem.SetDisplayName

Write method for the TCollectionItem.DisplayName property

## Declaration

`protected procedure TCollectionItem.SetDisplayName(`
`const Value: String`
`); virtual;`

## Description

SetDisplayName is the write method for the TCollectionItem.DisplayName property. It does nothing but notifying the managing collection that the displayname has changed. It does NOT store the actual Value.

Descendants of TCollectionItem should override this method to store the actual displayname if this is required.

## See also

TCollectionItem.DisplayName |  | Name of the item, displayed in the object inspector.