Export (0) Print
Expand All

InlineShapes.AddOLEControl Method

Creates an ActiveX control (formerly known as an OLE control).

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

InlineShape AddOLEControl(
	ref Object ClassType,
	ref Object Range
)

Parameters

ClassType
Type: System.Object%
Optional Object. The programmatic identifier for the ActiveX control to be created.
Range
Type: System.Object%
Optional Object. The range where the ActiveX control will be placed in the text. The ActiveX control replaces the range, if the range isn't collapsed. If this argument is omitted, the Active X control is placed automatically.

This method returns the InlineShape object that represents the new ActiveX control.

ActiveX controls are represented as either Shape objects or InlineShape objects in Microsoft Word. To modify the properties for an ActiveX control, use the Object() property of the OLEFormat object for the specified shape or inline shape.

Community Additions

ADD
Show:
© 2014 Microsoft