Show: Delphi C++
Display Preferences

FMX.Types.TFmxObject.RemoveObject

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure RemoveObject(const AObject: TFmxObject); overload;
procedure RemoveObject(Index: Integer); overload;

C++

void __fastcall RemoveObject(TFmxObject* const AObject)/* overload */;
void __fastcall RemoveObject(int Index)/* overload */;

Properties

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

Description

Removes a children object from its parent. Calling RemoveObject is equivalent to setting Parent to nil.

RemoveObject has two overloaded methods. The first one removes the object specified through the AObject parameter, which is of type TFmxObject. The second one removes the object whose index is specified through the Index parameter.

Tip: If you want to use RemoveObject on an object, that object must have been added to the children list through the AddObject method.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance