System.Classes.TComponent.HasParent

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

function HasParent: Boolean; dynamic;

C++

DYNAMIC bool __fastcall HasParent();

プロパティ

種類 可視性 ソース ユニット
function public
System.Classes.pas
System.Classes.hpp
System.Classes TComponent

説明

コンポーネントが親を持つかどうかを検証します。

特定のコンポーネントが親を持つかどうかを判断するには HasParent を呼び出します。

下位クラスでこのメソッドをオーバーライドして、親を持つかどうかについて適切な処理を実装します。

コンテナ コンポーネントの参照を取得するには、GetParentComponent を使用します。

関連項目