Show: Delphi C++
Display Preferences

FMX.Types.TFmxObject.ContainsObject

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

Personal tools
In Other Languages
Previous Versions
Assistance