ParentControlDesigner.GetParentForComponent(IComponent) 方法

定义

由基类用来确定在向其添加组件时是否返回正在设计的控件或其他某个 Container

protected:
 virtual System::Windows::Forms::Control ^ GetParentForComponent(System::ComponentModel::IComponent ^ component);
protected virtual System.Windows.Forms.Control GetParentForComponent (System.ComponentModel.IComponent component);
abstract member GetParentForComponent : System.ComponentModel.IComponent -> System.Windows.Forms.Control
override this.GetParentForComponent : System.ComponentModel.IComponent -> System.Windows.Forms.Control
Protected Overridable Function GetParentForComponent (component As IComponent) As Control

参数

component
IComponent

为其检索父 Control 的组件。

返回

组件的父 Control

适用于

另请参阅