AxHost.OcxState 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定 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.