Data.Bind.Components.TContainedBindComponent.GetParentComponent
| [–] Properties | |
|---|---|
| Type: function | |
| Visibility: public | |
| Source: Data.Bind.Components.pas Data.Bind.Components.hpp | |
| Unit: Data.Bind.Components | |
| Parent: TContainedBindComponent | |
Delphi
function GetParentComponent: TComponent; override;
C++
DYNAMIC System::Classes::TComponent* __fastcall GetParentComponent();
Description
Returns the containing component.
GetParentComponent returns a reference to the component that contains the current component, or nil if there is no container. Use HasParent to determine whether a component has a containing component.