API:DesignIntf.TClassWrapper.ClassNameIs

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ClassNameIs(const AClassName: string): Boolean;

C++

HIDESBASE bool __fastcall ClassNameIs(const System::UnicodeString AClassName);

Properties

Type Visibility Source Unit Parent
function protected
DesignIntf.pas
DesignIntf.hpp
DesignIntf TClassWrapper

Description

Determines whether an object is of a specific type.

DesignIntf.TClassWrapper.ClassNameIs inherits from System.TObject.ClassNameIs. All content below this line refers to System.TObject.ClassNameIs.

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