Show: Delphi C++
Display Preferences

System.TObject.UnitName

From XE2 API Documentation
Jump to: navigation, search

Delphi

class function UnitName: string;

C++

__classmethod String __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.

See Also

Personal tools
Previous Versions
Translations