Table of Contents

TProperty.IsCompatibleType Method

Returns true if the specified type info is compatible with the property. Used for properties of type tkClass.

Remarks

If the property is of type tkClass, then this method returns true if the specified type is compatible with the property. For a type to be compatible, it must be a class type which descends from the current property type. (For example, a TEdit type is compatible for a property of type TWinControl).

Syntax

Unit: PropertyList

function TProperty.IsCompatibleType(ATypeInfo: PTypeInfo): Boolean;

Parameters

<-> Parameter Type Description
ATypeInfo PTypeInfo The type which will be checked for compatibility with the property.

Returns

True if the type is compatible and property type is tkClass, false otherwise.

See also