AxHost.OcxState 屬性

定義

取得或設定 ActiveX 控制項的持續狀態。Gets or sets the persisted state of the ActiveX control.

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

屬性值

AxHost.State,表示 ActiveX 控制項的持續狀態。A AxHost.State that represents the persisted state of the ActiveX control.

屬性

例外狀況

ActiveX 控制項已經載入。The ActiveX control is already loaded.

備註

OcxState屬性的值會在控制項建立之後,但在顯示之前使用。The value of the OcxState property is used after the control is created but before it is shown. 基礎 ActiveX 控制項的保存狀態會在中AxHost.State傳回。The persisted state of the underlying ActiveX control is returned in the AxHost.State.

適用於

另請參閱