Szerkesztés

Megosztás a következőn keresztül:


ComponentDesigner.ParentComponent Property

Definition

Gets the parent component for this designer.

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

Property Value

The parent component for this designer, or null if this designer is the root component.

Remarks

This property provides a generic mechanism for discovering parent relationships within designers, and is used by the ComponentDesigner object's ITreeDesigner interface implementation. This property should only return null when this designer is the root component. The default implementation of this property returns the root component for all components that are not the root component, and it returns null for the root component.

Applies to