Method AddPushButton
- Namespace
- SoftZenPdf
- Assembly
- SoftZenPdf.dll
AddPushButton(string, double, double, double, double, string)
Adds a push button with a caption. Set Action to say what it does when clicked.
public PdfPushButton AddPushButton(string name, double x, double y, double width, double height, string caption)
Parameters
namestringA unique field name, without dots.
xdoubleLeft edge of the button, in points.
ydoubleBottom edge of the button, in points.
widthdoubleButton width, in points.
heightdoubleButton height, in points.
captionstringThe text shown on the button.
Returns
- PdfPushButton
The push button.
Exceptions
- ArgumentException
The name is empty, contains a dot, or is already used.
- InvalidOperationException
The document was created for PDF/A, where form fields are not supported yet.