RAD Studio VCL Reference
TReader.Owner Property

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

property Owner: TComponent;
__property TComponent * Owner;

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. 


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!