Export (0) Print
Expand All

Shapes.AddOLEControl Method

Creates an ActiveX control (formerly known as an OLE control). Returns the Shape object that represents the new ActiveX control.

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

Shape AddOLEControl(
	ref Object ClassType,
	ref Object Left,
	ref Object Top,
	ref Object Width,
	ref Object Height,
	ref Object Anchor
)

Parameters

ClassType
Type: System.Object%
Optional Object. The programmatic identifier for the ActiveX control to be created.
Left
Type: System.Object%
Optional Object. The position (in points) of the left edge of the new object relative to the anchor.
Top
Type: System.Object%
Optional Object. The position (in points) of the upper edge of the new object relative to the anchor.
Width
Type: System.Object%
Optional Object. The width of the ActiveX control, in points.
Height
Type: System.Object%
Optional Object.The height of the ActiveX control, in points.
Anchor
Type: System.Object%
Optional Object. The range to which the ActiveX control is bound. If Anchor is specified, the anchor is positioned at the beginning of the first paragraph in the anchoring range. If this argument is omitted, however, the anchor is placed automatically and the ActiveX control is positioned relative to the top and left edges of the page.

Community Additions

ADD
Show:
© 2015 Microsoft