DesignIntf.IDesigner60.Root

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Root: TComponent read GetRoot;

C++

__property System::Classes::TComponent* Root = {read=GetRoot};

Properties

Type Visibility Source Unit Parent
property public
DesignIntf.pas
DesignIntf.hpp
DesignIntf IDesigner60

Description

Designates the current entity being edited by the form designer.

Root is the object that the form designer manages. This can be a form, frame, data module, or other top-level object. The Root object is the Owner of all objects that are placed into it using the form designer.

Root also defines a global name space: Objects placed in the root object must not have the same name as another object contained by the root object. When code on components that are not contained in the root object refer to objects in the root object, they use the name of the root object to qualify the contained object's name. For example

Form1.Button1 {Delphi}

Form1->Button1 // C++

See Also