![Pdftools logo](../icons/pdftools-icon.png) | 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.FourHeights.PdfToolbox.Pdf.FormsAssembly: PdfTools.FourHeights.PdfToolbox (in PdfTools.FourHeights.PdfToolbox.dll) Version: 4.4.1+cd45f416896d630bcd3719f4b2cba7920f2790da
Syntaxpublic Widget AddNewWidget(
Rectangle boundingBox
)
Parameters
- boundingBox Rectangle
-
The widget's target rectangle on the page
Return Value
Widget
the newly created form field widget
ExceptionsException | Condition |
---|
InvalidOperationException | if the document has already been closed |
NotSupportedException | if the document is read-only |
NotSupportedException | if the form field is of type RadioButtonGroup |
See Also