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
positionPdfPointThe position of the upper-left corner of the text box.
sizePdfSizeThe size of the text box.
Returns
- PdfTextBox
The newly created PdfTextBox object.
Remarks
AddTextBox(PdfRectangle)
Adds the new text box control with auto-generated name to the PdfPage.
public PdfTextBox AddTextBox(PdfRectangle boundingBox)
Parameters
boundingBoxPdfRectangleThe PdfRectangle structure that specifies the location and the size of the text box.
Returns
- PdfTextBox
The newly created PdfTextBox object.
Remarks
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
leftdoubleThe x-coordinate of the upper-left corner of the text box.
topdoubleThe y-coordinate of the upper-left corner of the text box.
widthdoubleThe width of the text box.
heightdoubleThe height of the text box.
Returns
- PdfTextBox
The newly created PdfTextBox object.
Remarks
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
namestringThe unique name of the text box control.
positionPdfPointThe position of the upper-left corner of the text box.
sizePdfSizeThe size of the text box.
Returns
- PdfTextBox
The newly created PdfTextBox object.
Remarks
AddTextBox(string?, PdfRectangle)
Adds the new text box control with specified unique name to the PdfPage.
public PdfTextBox AddTextBox(string? name, PdfRectangle boundingBox)
Parameters
namestringThe unique name of the text box control.
boundingBoxPdfRectangleThe PdfRectangle structure that specifies the location and the size of the text box.
Returns
- PdfTextBox
The newly created PdfTextBox object.
Remarks
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
namestringThe unique name of the text box control.
leftdoubleThe x-coordinate of the upper-left corner of the text box.
topdoubleThe y-coordinate of the upper-left corner of the text box.
widthdoubleThe width of the text box.
heightdoubleThe height of the text box.
Returns
- PdfTextBox
The newly created PdfTextBox object.