API:Vcl.Menus.TMenuItem.HasParent
Delphi
function HasParent: Boolean; override;
C++
DYNAMIC bool __fastcall HasParent();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.Menus.pas Vcl.Menus.hpp |
Vcl.Menus | TMenuItem |
Description
Verifies whether the component has a parent.
Vcl.Menus.TMenuItem.HasParent inherits from System.Classes.TComponent.HasParent. All content below this line refers to System.Classes.TComponent.HasParent.
Verifies whether the component has a parent.
Call HasParent to determine whether a specific component has a parent.
Derived classes override this method to implement proper handling for parenting.
Use GetParentComponent to retrieve the component reference.