Export (0) Print
Expand All

Shapes.AddTextbox Method

Creates a text box. Returns a Shape object that represents the new text box.

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

Shape AddTextbox(
	MsoTextOrientation Orientation,
	float Left,
	float Top,
	float Width,
	float Height
)

Parameters

Orientation
Type: Microsoft.Office.Core.MsoTextOrientation

Required MsoTextOrientation. The orientation of the textbox.

Left
Type: System.Single

Required Single. The position (in points) of the upper-left corner of the text box relative to the upper-left corner of the document.

Top
Type: System.Single

Required Single. The position (in points) of the upper-left corner of the text box relative to the top of the document.

Width
Type: System.Single

Required Single. The width of the text box, in points.

Height
Type: System.Single

Required Single. The height of the text box, in points.

Show:
© 2015 Microsoft