FMX.Types.TFmxObject.ContainsObject

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function ContainsObject(AObject: TFmxObject): Boolean; virtual;

C++

virtual bool __fastcall ContainsObject(TFmxObject* AObject);

Properties

Type Visibility Source Unit Parent
function public
FMX.Types.pas
FMX.Types.hpp
FMX.Types TFmxObject

Description

Returns True if the specified object is a direct child.

ContainsObject returns True if the specified object (<AObject>) is a direct child of this TFmxObject (self). It returns False otherwise.

Unlike IsChild, ContainsObject only returns True when passed a direct child of this object as <AObject>. For example, if A is a direct child of this object, and B is a direct child of A, ContainsObject returns True when passed A as <AObject>, but it returns False when passed B.

See Also