System.Windows.Forms.AxHost Members

The members of System.Windows.Forms.AxHost are listed below.

See Also: Inherited members from System.Windows.Forms.Control

Protected Constructors

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

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

Public Properties

override
BackColorSystem.Drawing.Color.

This member is not meaningful for this control.

override
BackgroundImageSystem.Drawing.Image.

This property is not relevant for this class.

override
BackgroundImageLayoutImageLayout.

This property is not relevant for this class.

ContainingControlContainerControl.

Gets or sets the control containing the ActiveX control.

override
ContextMenuContextMenu.

This property is not relevant for this class.

override
CursorCursor.

This property is not relevant for this class.

[read-only]
EditModebool.

Returns a value that indicates whether the hosted control is in edit mode.

Enabledbool.

This property is not relevant for this class.

override
FontSystem.Drawing.Font.

This property is not relevant for this class.

override
ForeColorSystem.Drawing.Color.

This property is not relevant for this class.

[read-only]
HasAboutBoxbool.

Gets a value indicating whether the ActiveX control has an About dialog box.

ImeModeImeMode.

This property is not relevant for this class.

OcxStateAxHost.State.

Gets or sets the persisted state of the ActiveX control.

RightToLeftbool.

This property is not relevant for this class.

[write-only]
override
SiteSystem.ComponentModel.ISite. Documentation for this section has not yet been entered.
override
Textstring.

This property is not relevant for this class.

Protected Properties

[read-only]
override
CreateParamsCreateParams. Documentation for this section has not yet been entered.
[read-only]
override
DefaultSizeSystem.Drawing.Size. Documentation for this section has not yet been entered.

Public Methods

BeginInit()

Begins the initialization of the ActiveX control.

DoVerb(int)

Requests that an object perform an action in response to an end-user's action.

DrawToBitmap(System.Drawing.Bitmap, System.Drawing.Rectangle)

This method is not supported by this control.

EndInit()

Ends the initialization of an ActiveX control.

GetOcx() : object

Retrieves a reference to the underlying ActiveX control.

HasPropertyPages() : bool

Determines if the ActiveX control has a property page.

InvokeEditMode()

Attempts to activate the editing mode of the hosted control.

MakeDirty()

Announces to the component change service that the System.Windows.Forms.AxHost has changed.

override
PreProcessMessage(ref Message) : bool
Documentation for this section has not yet been entered.
ShowAboutBox()

Displays the ActiveX control's About dialog box.

ShowPropertyPages()

Displays the property pages associated with the ActiveX control.

ShowPropertyPages(Control)

Displays the property pages associated with the ActiveX control assigned to the specified parent control.

Protected Methods

AttachInterfaces()

When overridden in a derived class, attaches interfaces to the underlying ActiveX control.

override
CreateHandle()
Documentation for this section has not yet been entered.
CreateInstanceCore(Guid) : object

Called by the system to create the ActiveX control.

CreateSink()

Called by the control to prepare it for listening to events.

override
DestroyHandle()
Documentation for this section has not yet been entered.
DetachSink()

Called by the control when it stops listening to events.

override
Dispose(bool)
Documentation for this section has not yet been entered.
static
GetColorFromOleColor(uint) : System.Drawing.Color

Returns a System.Drawing.Color structure that corresponds to the specified OLE color value.

static
GetFontFromIFont(object) : System.Drawing.Font

Returns a System.Drawing.Font created from the specified OLE tp://go.microsoft.com/fwlink/?LinkId=166075 object.

static
GetFontFromIFontDisp(object) : System.Drawing.Font

Returns a System.Drawing.Font created from the specified OLE tp://go.microsoft.com/fwlink/?LinkId=166073 object.

static
GetIFontDispFromFont(System.Drawing.Font) : object

Returns an OLE tp://go.microsoft.com/fwlink/?LinkId=166073 object created from the specified System.Drawing.Font object.

static
GetIFontFromFont(System.Drawing.Font) : object

Returns an OLE tp://go.microsoft.com/fwlink/?LinkId=166075 object created from the specified System.Drawing.Font object.

static
GetIPictureDispFromPicture(System.Drawing.Image) : object

Returns an OLE IPictureDisp object corresponding to the specified System.Drawing.Image.

static
GetIPictureFromCursor(Cursor) : object

Returns an OLE IPicture object corresponding to the specified System.Windows.Forms.Cursor.

static
GetIPictureFromPicture(System.Drawing.Image) : object

Returns an OLE IPicture object corresponding to the specified System.Drawing.Image.

static
GetOADateFromTime(DateTime) : double

Returns an OLE Automation date that corresponds to the specified DateTime structure.

static
GetOleColorFromColor(System.Drawing.Color) : uint

Returns an OLE color value that corresponds to the specified System.Drawing.Color structure.

static
GetPictureFromIPicture(object) : System.Drawing.Image

Returns an System.Drawing.Image corresponding to the specified OLE IPicture object.

static
GetPictureFromIPictureDisp(object) : System.Drawing.Image

Returns an System.Drawing.Image corresponding to the specified OLE IPictureDisp object.

GetScaledBounds(System.Drawing.Rectangle, System.Drawing.SizeF, BoundsSpecified) : System.Drawing.Rectangle

Called by the system to retrieve the current bounds of the ActiveX control.

static
GetTimeFromOADate(double) : DateTime

Returns a DateTime structure that corresponds to the specified OLE Automation date.

override
IsInputChar(char) : bool

Determines if a character is an input character that the ActiveX control recognizes.

override
OnBackColorChanged(EventArgs)
Documentation for this section has not yet been entered.
override
OnFontChanged(EventArgs)
Documentation for this section has not yet been entered.
override
OnForeColorChanged(EventArgs)
Documentation for this section has not yet been entered.
override
OnHandleCreated(EventArgs)
Documentation for this section has not yet been entered.
OnInPlaceActive()

Called when the control transitions to the in-place active state.

override
OnLostFocus(EventArgs)
Documentation for this section has not yet been entered.
override
ProcessDialogKey(Keys) : bool
Documentation for this section has not yet been entered.
override
ProcessMnemonic(char) : bool
Documentation for this section has not yet been entered.
PropsValid() : bool

Returns a value that indicates whether the hosted control is in a state in which its properties can be accessed.

RaiseOnMouseDown(short, short, int, int)

Raises the AxHost.MouseDown event using the specified 32-bit signed integers.

RaiseOnMouseDown(short, short, float, float)

Raises the AxHost.MouseDown event using the specified single-precision floating-point numbers.

RaiseOnMouseDown(object, object, object, object)

Raises the AxHost.MouseDown event using the specified objects.

RaiseOnMouseMove(short, short, int, int)

Raises the AxHost.MouseMove event using the specified 32-bit signed integers.

RaiseOnMouseMove(short, short, float, float)

Raises the AxHost.MouseMove event using the specified single-precision floating-point numbers.

RaiseOnMouseMove(object, object, object, object)

Raises the AxHost.MouseMove event using the specified objects.

RaiseOnMouseUp(short, short, int, int)

Raises the AxHost.MouseUp event using the specified 32-bit signed integers.

RaiseOnMouseUp(short, short, float, float)

Raises the AxHost.MouseUp event using the specified single-precision floating-point numbers.

RaiseOnMouseUp(object, object, object, object)

Raises the AxHost.MouseUp event using the specified objects.

SetAboutBoxDelegate(AxHost.AboutBoxDelegate)
Documentation for this section has not yet been entered.
override
SetBoundsCore(int, int, int, int, BoundsSpecified)
Documentation for this section has not yet been entered.
override
SetVisibleCore(bool)
Documentation for this section has not yet been entered.
override
WndProc(ref Message)
Documentation for this section has not yet been entered.

Public Events

BackColorChanged

The AxHost.BackColorChanged event is not supported by the System.Windows.Forms.AxHost class.

BackgroundImageChanged

The AxHost.BackgroundImageChanged event is not supported by the System.Windows.Forms.AxHost class.

BackgroundImageLayoutChanged

This event is not relevant for this class.

BindingContextChanged

The AxHost.BindingContextChanged event is not supported by the System.Windows.Forms.AxHost class.

ChangeUICues

The AxHost.ChangeUICues event is not supported by the System.Windows.Forms.AxHost class.

Click

The AxHost.Click event is not supported by the System.Windows.Forms.AxHost class.

ContextMenuChanged

The AxHost.ContextMenuChanged event is not supported by the System.Windows.Forms.AxHost class.

CursorChanged

The AxHost.CursorChanged event is not supported by the System.Windows.Forms.AxHost class.

DoubleClick

The AxHost.DoubleClick event is not supported by the System.Windows.Forms.AxHost class.

DragDrop

The AxHost.DragDrop event is not supported by the System.Windows.Forms.AxHost class.

DragEnter

The AxHost.DragEnter event is not supported by the System.Windows.Forms.AxHost class.

DragLeave

The AxHost.DragLeave event is not supported by the System.Windows.Forms.AxHost class.

DragOver

The AxHost.DragOver event is not supported by the System.Windows.Forms.AxHost class.

EnabledChanged

The AxHost.EnabledChanged event is not supported by the System.Windows.Forms.AxHost class.

FontChanged

The AxHost.FontChanged event is not supported by the System.Windows.Forms.AxHost class.

ForeColorChanged

The AxHost.ForeColorChanged event is not supported by the System.Windows.Forms.AxHost class.

GiveFeedback

The AxHost.GiveFeedback event is not supported by the System.Windows.Forms.AxHost class.

HelpRequested

The AxHost.HelpRequested event is not supported by the System.Windows.Forms.AxHost class.

ImeModeChanged

The AxHost.ImeModeChanged event is not supported by the System.Windows.Forms.AxHost class.

KeyDown

The AxHost.KeyDown event is not supported by the System.Windows.Forms.AxHost class.

KeyPress

The AxHost.KeyPress event is not supported by the System.Windows.Forms.AxHost class.

KeyUp

The AxHost.KeyUp event is not supported by the System.Windows.Forms.AxHost class.

Layout

The AxHost.Layout event is not supported by the System.Windows.Forms.AxHost class.

MouseClick

This event is not relevant for this class.

MouseDoubleClick

This event is not relevant for this class.

MouseDown

The AxHost.MouseDown event is not supported by the System.Windows.Forms.AxHost class.

MouseEnter

The AxHost.MouseEnter event is not supported by the System.Windows.Forms.AxHost class.

MouseHover

The AxHost.MouseHover event is not supported by the System.Windows.Forms.AxHost class.

MouseLeave

The AxHost.MouseLeave event is not supported by the System.Windows.Forms.AxHost class.

MouseMove

The AxHost.MouseMove event is not supported by the System.Windows.Forms.AxHost class.

MouseUp

The AxHost.MouseUp event is not supported by the System.Windows.Forms.AxHost class.

MouseWheel

The AxHost.MouseWheel event is not supported by the System.Windows.Forms.AxHost class.

Paint

The AxHost.Paint event is not supported by the System.Windows.Forms.AxHost class.

QueryAccessibilityHelp

The AxHost.QueryAccessibilityHelp event is not supported by the System.Windows.Forms.AxHost class.

QueryContinueDrag

The AxHost.QueryContinueDrag event is not supported by the System.Windows.Forms.AxHost class.

RightToLeftChanged

The AxHost.RightToLeftChanged event is not supported by the System.Windows.Forms.AxHost class.

StyleChanged

The AxHost.StyleChanged event is not supported by the System.Windows.Forms.AxHost class.

TabIndexChangedDocumentation for this section has not yet been entered.
TabStopChangedDocumentation for this section has not yet been entered.
TextChanged

The AxHost.TextChanged event is not supported by the System.Windows.Forms.AxHost class.

Explicitly Implemented Interface Members

System.ComponentModel.ICustomTypeDescriptor.GetAttributes

Returns a collection of type Attribute for the current object.

System.ComponentModel.ICustomTypeDescriptor.GetClassName

Returns the class name of the current object.

System.ComponentModel.ICustomTypeDescriptor.GetComponentName

Returns the name of the current object.

System.ComponentModel.ICustomTypeDescriptor.GetConverter

Returns a type converter for the current object.

System.ComponentModel.ICustomTypeDescriptor.GetDefaultEvent

Returns the default event for the current object.

System.ComponentModel.ICustomTypeDescriptor.GetDefaultProperty

Returns the default property for the current object.

System.ComponentModel.ICustomTypeDescriptor.GetEditor

Returns an editor of the specified type for the current object.

System.ComponentModel.ICustomTypeDescriptor.GetEvents

Returns the events for the current object.

System.ComponentModel.ICustomTypeDescriptor.GetEvents

Returns the events for the current object using the specified attribute array as a filter.

System.ComponentModel.ICustomTypeDescriptor.GetProperties

Returns the properties for the current object.

System.ComponentModel.ICustomTypeDescriptor.GetProperties

Returns the properties for the current object using the specified attribute array as a filter.

System.ComponentModel.ICustomTypeDescriptor.GetPropertyOwner

Returns the object that owns the specified value.