Redigera

Dela via


AxHost Constructors

Definition

Initializes a new instance of the AxHost class.

Overloads

AxHost(String)

Initializes a new instance of the AxHost class, wrapping the ActiveX control indicated by the specified CLSID.

AxHost(String, Int32)

Initializes a new instance of the AxHost class, wrapping the ActiveX control indicated by the specified CLSID, and using the shortcut-menu behavior indicated by the specified flags value.

AxHost(String)

Source:
AxHost.cs
Source:
AxHost.cs
Source:
AxHost.cs

Initializes a new instance of the AxHost class, wrapping the ActiveX control indicated by the specified CLSID.

protected:
 AxHost(System::String ^ clsid);
protected AxHost (string clsid);
new System.Windows.Forms.AxHost : string -> System.Windows.Forms.AxHost
Protected Sub New (clsid As String)

Parameters

clsid
String

The CLSID of the ActiveX control to wrap.

Applies to

AxHost(String, Int32)

Source:
AxHost.cs
Source:
AxHost.cs
Source:
AxHost.cs

Initializes a new instance of the AxHost class, wrapping the ActiveX control indicated by the specified CLSID, and using the shortcut-menu behavior indicated by the specified flags value.

protected:
 AxHost(System::String ^ clsid, int flags);
protected AxHost (string clsid, int flags);
new System.Windows.Forms.AxHost : string * int -> System.Windows.Forms.AxHost
Protected Sub New (clsid As String, flags As Integer)

Parameters

clsid
String

The CLSID of the ActiveX control to wrap.

flags
Int32

An Int32 that modifies the shortcut-menu behavior for the control.

Remarks

If the binary representation of the flags parameter value contains the bit represented by the value 0x1, the shortcut menu for the control will not contain an Edit option unless the ActiveX control explicitly provides it.

If the binary representation of the flags parameter value contains the bit represented by the value 0x2, the shortcut menu for the control will contain a Properties option if the ActiveX control offers a set of property pages; otherwise, the shortcut menu will contain a Properties option only if the ActiveX control explicitly provides it.

Applies to