ControlDesigner.ParentComponent 属性

定义

获取 ControlDesigner 的父组件。Gets the parent component for the ControlDesigner.

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

属性值

ControlDesigner 的父组件;否则(没有父组件时)为 nullThe parent component for the ControlDesigner; otherwise, null if there is no parent component.

注解

默认实现仅检查正在设计的组件是否为控件,如果为,则 ParentComponent 返回其父级。The default implementation simply checks to see if the component being designed is a control and if it is, ParentComponent returns its parent.

适用于