This documentation is archived and is not being maintained.

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)

'Usage
Dim Orientation As MsoTextOrientation
Dim Left As Single
Dim Top As Single
Dim Width As Single
Dim Height As Single
Dim returnValue As Shape
Dim shapes1 As Shapes
returnValue = shapes1.AddTextbox(Orientation, Left, Top, Width, Height)

Shape AddTextbox(
	[In] MsoTextOrientation Orientation, 
	[In] float Left, 
	[In] float Top, 
	[In] float Width, 
	[In] float Height
);
public Shape AddTextbox(
	/*in*/MsoTextOrientation Orientation, 
	/*in*/float Left, 
	/*in*/float Top, 
	/*in*/float Width, 
	/*in*/float Height
);
function AddTextbox(
	 Orientation : MsoTextOrientation, 
	 Left : float, 
	 Top : float, 
	 Width : float, 
	 Height : float
) : Shape;

Parameters

Orientation

Required Microsoft.Office.Core.MsoTextOrientation. The orientation of the textbox.

Left

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

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

Width

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

Height

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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

Show: