共用方式為


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 A 代表 ActiveX 控制項的持久狀態。

屬性

例外狀況

ActiveX 控制項已經載入了。

備註

該財產的價值 OcxState 是在控制項建立後但顯示之前使用。 底層 ActiveX 控制項的持久狀態會回傳在 AxHost.State.

適用於

另請參閱