通过


AxHost.ContainingControl 属性

定义

获取或设置包含 ActiveX 控件的控件。

public:
 property System::Windows::Forms::ContainerControl ^ ContainingControl { System::Windows::Forms::ContainerControl ^ get(); void set(System::Windows::Forms::ContainerControl ^ value); };
[System.ComponentModel.Browsable(false)]
public System.Windows.Forms.ContainerControl ContainingControl { get; set; }
[System.ComponentModel.Browsable(false)]
public System.Windows.Forms.ContainerControl? ContainingControl { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.ContainingControl : System.Windows.Forms.ContainerControl with get, set
Public Property ContainingControl As ContainerControl

属性值

一个 ContainerControl 表示包含 ActiveX 控件的控件。

属性

注解

属性值 ContainingControl 可以不同于该 Parent 属性。 此属性 ContainerControl 表示的是 ActiveX 控件的逻辑容器。 例如,如果 ActiveX 控件托管在控件中,并且GroupBox包含在控件FormGroupBox中,则 ContainingControl ActiveX 控件的属性值为该Form控件,Parent而属性值为GroupBox控件。

适用于

另请参阅