TProperty.IsType Method
Check if the property type is same or descending of a specified type. Used for properties of type tkClass.
Remarks
If the property is of type tkClass, then this method returns true if the specified property is the same type of the specified type, or descends from it. For example, if the property is a TEdit type, then calling this method passing TComponent type info will return true, since TEdit "is" type TComponent.
Syntax
Unit: PropertyList
function TProperty.IsType(ATypeInfo: PTypeInfo): Boolean;
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| ATypeInfo | PTypeInfo | The type info for which the property will be checked to be the same type |
Returns
True if the property is of type ATypeInfo, false otherwise. If the property is not of type tkClass, false is returned.