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

属性值

表示 ActiveX 控件的持久状态的 AxHost.StateA 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.

适用于

另请参阅