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)>]
member this.OcxState : System.Windows.Forms.AxHost.State with get, set
Public Property OcxState As AxHost.State

屬性值

AxHost.State

AxHost.State,表示 ActiveX 控制項的持續狀態。

屬性

例外狀況

ActiveX 控制項已經載入。

備註

屬性的值 OcxState 會在控制項建立之後使用,但在顯示之前。 基礎 ActiveX 控制項的保存狀態會在 中 AxHost.State 傳回。

適用於

另請參閱