ComponentDesigner.ParentComponent プロパティ

定義

このデザイナーの親コンポーネントを取得します。

protected:
 virtual property System::ComponentModel::IComponent ^ ParentComponent { System::ComponentModel::IComponent ^ get(); };
protected virtual System.ComponentModel.IComponent ParentComponent { get; }
member this.ParentComponent : System.ComponentModel.IComponent
Protected Overridable ReadOnly Property ParentComponent As IComponent

プロパティ値

このデザイナーの親コンポーネント。このデザイナーがルート コンポーネントの場合は null

注釈

このプロパティは、デザイナー内の親リレーションシップを検出するための一般的なメカニズムを提供し、 ComponentDesigner オブジェクトの ITreeDesigner インターフェイス実装によって使用されます。 このプロパティは、このデザイナーがルート コンポーネントである場合にのみ null を返す必要があります。 このプロパティの既定の実装では、ルート コンポーネントではないすべてのコンポーネントのルート コンポーネントが返され、ルート コンポーネントの null が返されます。

適用対象