Table of Contents

Method AddTextBox

Namespace
BitMiracle.Docotic.Pdf
Assembly
BitMiracle.Docotic.Pdf.dll

AddTextBox(PdfPoint, PdfSize)

Adds the new text box control with auto-generated name to the PdfPage.

public PdfTextBox AddTextBox(PdfPoint position, PdfSize size)

Parameters

position PdfPoint

The position of the upper-left corner of the text box.

size PdfSize

The size of the text box.

Returns

PdfTextBox

The newly created PdfTextBox object.

Remarks

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

AddTextBox(PdfRectangle)

Adds the new text box control with auto-generated name to the PdfPage.

public PdfTextBox AddTextBox(PdfRectangle boundingBox)

Parameters

boundingBox PdfRectangle

The PdfRectangle structure that specifies the location and the size of the text box.

Returns

PdfTextBox

The newly created PdfTextBox object.

Remarks

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

AddTextBox(double, double, double, double)

Adds the new text box control with auto-generated name to the PdfPage.

public PdfTextBox AddTextBox(double left, double top, double width, double height)

Parameters

left double

The x-coordinate of the upper-left corner of the text box.

top double

The y-coordinate of the upper-left corner of the text box.

width double

The width of the text box.

height double

The height of the text box.

Returns

PdfTextBox

The newly created PdfTextBox object.

Remarks

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

AddTextBox(string, PdfPoint, PdfSize)

Adds the new text box control with specified unique name to the PdfPage.

public PdfTextBox AddTextBox(string name, PdfPoint position, PdfSize size)

Parameters

name string

The unique name of the text box control.

position PdfPoint

The position of the upper-left corner of the text box.

size PdfSize

The size of the text box.

Returns

PdfTextBox

The newly created PdfTextBox object.

Remarks

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

AddTextBox(string?, PdfRectangle)

Adds the new text box control with specified unique name to the PdfPage.

public PdfTextBox AddTextBox(string? name, PdfRectangle boundingBox)

Parameters

name string

The unique name of the text box control.

boundingBox PdfRectangle

The PdfRectangle structure that specifies the location and the size of the text box.

Returns

PdfTextBox

The newly created PdfTextBox object.

Remarks

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

AddTextBox(string?, double, double, double, double)

Adds the new text box control with specified unique name to the PdfPage.

public PdfTextBox AddTextBox(string? name, double left, double top, double width, double height)

Parameters

name string

The unique name of the text box control.

left double

The x-coordinate of the upper-left corner of the text box.

top double

The y-coordinate of the upper-left corner of the text box.

width double

The width of the text box.

height double

The height of the text box.

Returns

PdfTextBox

The newly created PdfTextBox object.

Remarks

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