RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TObject::UnitName Method

Returns a string containing the unit name.

Pascal
class function UnitName: string;
C++
string UnitName();

By default, calling System::TObject::UnitName on an object, returns a string representing the unit name where it is contained.  

 

Calling System::TObject::UnitName on a TButton instance returns a string containing "StdCtrls".

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