System.Classes.TReader.Owner

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Owner: TComponent read FOwner write FOwner;

C++

__property TComponent* Owner = {read=FOwner, write=FOwner};

Properties

Type Visibility Source Unit Parent
property public
System.Classes.pas
System.Classes.hpp
System.Classes TReader

Description

Stores the component that is assigned as the Owner property of components read from the reader object's stream.

Owner is used internally by the component streaming system to determine which components to stream. The streaming process handles all components owned by the Root component.

Owner is the Owner property of the component read from the stream. The value of the component's Owner property is assigned from the reader's Owner property. If the value of the reader's Owner property is nil (Delphi) or NULL (C++), then the Root property is assigned as the component's Owner property.

For most components, Owner is nil (Delphi) or NULL (C++). For components that can contain subcomponents that are not owned by the Root form, such as the nodes of a tree view component, the Owner is not the same as the Root. The GetChildOwner method of the component determines the Owner.

See Also