Click or drag to resize
Pdftools logo

FieldAddNewWidget Method

Create a new widget and add to the form field

This method creates a widget for the form field. The widget is automatically added to the field's widgets, but not to any page. This method does not work for radio button form fields; Use AddNewWidget(Rectangle).

Namespace: PdfTools.Toolbox.Pdf.Forms
Assembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.1.0+5820e9ca9ca173983539ffc40abc227fb62e6928
Syntax
C#
public Widget AddNewWidget(
	Rectangle boundingBox
)

Parameters

boundingBox  Rectangle
The widget's target rectangle on the page

Return Value

Widget
the newly created form field widget
Exceptions
ExceptionCondition
InvalidOperationExceptionif the document has already been closed
NotSupportedExceptionif the document is read-only
NotSupportedExceptionif the form field is of type RadioButtonGroup
See Also