System.TObject.UnitName
Delphi
class function UnitName: string;
C++
__classmethod UnicodeString __fastcall UnitName();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.pas systobj.h |
System | TObject |
Description
Returns the name of the unit where the class is defined.
UnitName can be used to obtain the unit where a specific class is defined. For example, calling UnitName on TButton returns the Vcl.StdCtrls
string.