Control.GetContainerControl 方法

定义

沿着控件的父控件链向上,返回下一个 ContainerControlReturns the next ContainerControl up the control's chain of parent controls.

public:
 System::Windows::Forms::IContainerControl ^ GetContainerControl();
public System.Windows.Forms.IContainerControl GetContainerControl ();
member this.GetContainerControl : unit -> System.Windows.Forms.IContainerControl
Public Function GetContainerControl () As IContainerControl

返回

IContainerControl,表示 Control 的父级。An IContainerControl, that represents the parent of the Control.

适用于

另请参阅