FMX.ListBox.TListBoxItem.GetParentComponent
Delphi
function GetParentComponent: TComponent; override;
C++
DYNAMIC System::Classes::TComponent* __fastcall GetParentComponent();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FMX.ListBox.pas FMX.ListBox.hpp |
FMX.ListBox | TListBoxItem |
Description
Returns the containing component.
Returns the containing component.
FMX.ListBox.TListBoxItem.GetParentComponent inherits from System.Classes.TComponent.GetParentComponent. All content below this line refers to System.Classes.TComponent.GetParentComponent.
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.
For example, a button on a panel on a form returns the panel, the panel returns the form, and the form returns nil.