RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TListControlItem.GetDisplayName Method

Specifies the name of the item as it appears in the Object Inspector.

Pascal
function GetDisplayName: String; override;
C++
virtual __fastcall AnsiString GetDisplayName();

GetDisplayName returns the string that represents the item in the Collection editor and the Object Inspector.  

GetDisplayName returns the value of the Caption if it is set. Otherwise, it returns the class name of the TListControlItem descendant for which this is an instance, with a number added to ensure uniqueness. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!