FMX.Types.TFmxObject.IsChild
Delphi
function IsChild(AObject: TFmxObject): Boolean; virtual;
C++
virtual bool __fastcall IsChild(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 child.
IsChild returns True
if the specified object (AObject
) is a child of this TFmxObject (self) or any of its children, grand-children, etc. It returns False
otherwise.
Unlike ContainsObject, IsChild not only returns True
when passed a direct child of this object as AObject
, but also when the specified object is a grand-child, grand-grand-child, and so on of this object. For example, if A is a direct child of this object, and B is a direct child of A, IsChild returns True
both when passed A as AObject
and when passed B.