通过


AxHost.OcxState 属性

定义

获取或设置 ActiveX 控件的持久状态。

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

属性值

一个 AxHost.State 表示 ActiveX 控件的持久状态。

属性

例外

ActiveX 控件已加载。

注解

在创建控件之后,但在显示该属性之前,将使用该属性的值 OcxState 。 基础 ActiveX 控件的持久状态在 .AxHost.State

适用于

另请参阅