RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TAggregate.GetDisplayName Method

Specifies the name of the aggregate object as it appears in the Object Inspector.

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

GetDisplayName overrides the inherited method to provide more meaningful names for the aggregate when it appears in the object inspector. If the AggregateName property is set, GetDisplayName returns that. Otherwise, if the Expression property is set, it returns that. If all else fails, it calls the inherited method, which returns the class name with a number suffixed to ensure uniqueness. 

 

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