System.TObject.ClassNameIs

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From System.pas

	class function ClassNameIs(const Name: string): Boolean;


Unit: System

Type: method

Visibility: public

Member Of: TObject

C++ Information

From System.hpp

	__classmethod bool __fastcall ClassNameIs(System::UnicodeString string);


Unit: System

Type: method

Visibility: public

Member Of: TObject

Description

Determines whether an object is of a specific type.


ClassNameIs determines whether an object instance or class reference has a class name that matches a specified string. This is useful to query objects across modules or shared libraries.

Note:  In C++ code, call ClassNameIs as a method to compare an object's class name. Use the global static function to compare the class name from a metaclass object.

See Also

Personal tools
Translations
Newest Version