[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Classes' (#rtl)

TComponent.GetChildParent

Returns the parent of any children.

Declaration

Source position: classesh.inc line 1605

protected function TComponent.GetChildParent: TComponent; dynamic;

Description

GetChildParent returns the parent component of the child components being streamed. The parent property is a visual property, which is not always meaningful. If there is no parent component, the owner of child components that are streamed is returned. If Nil is returned, then the root component of the streaming operation is assumed. The TComponent implementation of this method returns Self.

Application programmers should not call this method, it is called automatically by the streaming mechanism.

See also

TComponent.GetChildOwner

  

Returns the owner of any children.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.