Table of Contents

TProperty.IsCompatibleObject Method

Returns true if the specified object can be used as a property value. Used for properties of type tkClass.

Remarks

If the property is of type tkClass, then this method returns true if the specified object can be set to the property value. For the object to be compatible, it must be of the same class as the property type (for example, a TEdit object is compatible for a property of type TWinControl).

Syntax

Unit: PropertyList

function TProperty.IsCompatibleObject(AObject: TObject): Boolean;

Parameters

<-> Parameter Type Description
AObject TObject The object which will be checked for compatibility with the property.

Returns

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

See also