Docotic.Pdf Library Help > BitMiracle.Docotic.Pdf > PdfPage Class > PdfPage Methods > AddTextBox Method > AddTextBox Method (Double, Double, Double, Double)
Adds the new text box control with auto-generated name to the PdfPage.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public PdfTextBox AddTextBox(
	double left,
	double top,
	double width,
	double height
)
VB
Public Function AddTextBox ( 
	left As Double,
	top As Double,
	width As Double,
	height As Double
) As PdfTextBox

Parameters

left
Type: System.Double
The x-coordinate of the upper-left corner of the text box.
top
Type: System.Double
The y-coordinate of the upper-left corner of the text box.
width
Type: System.Double
The width of the text box.
height
Type: System.Double
The height of the text box.

Return Value

Type: PdfTextBox
The newly created PdfTextBox object.

Remarks

The Rotation of the new text box is set to the rotation (PdfPage.Rotation) of the owner page.

See Also