ComponentDesigner.ParentComponent Свойство
Определение
Возвращает родительский компонент этого конструктора.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; }
member this.ParentComponent : System.ComponentModel.IComponent
Protected Overridable ReadOnly Property ParentComponent As IComponent
Значение свойства
Родительский компонент этого конструктора либо значение null
, если этот конструктор является корневым компонентом.The parent component for this designer, or null
if this designer is the root component.
Комментарии
Это свойство предоставляет универсальный механизм для обнаружения родительских связей в конструкторах и используется ComponentDesigner ITreeDesigner реализацией интерфейса объекта.This property provides a generic mechanism for discovering parent relationships within designers, and is used by the ComponentDesigner object's ITreeDesigner interface implementation. Это свойство должно возвращать null
, только если этот конструктор является корневым компонентом.This property should only return null
when this designer is the root component. Реализация по умолчанию этого свойства возвращает корневой компонент для всех компонентов, которые не являются корневым компонентом, и возвращается null
для корневого компонента.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.