Method AddCheckBox
- Namespace
- SoftZenPdf
- Assembly
- SoftZenPdf.dll
AddCheckBox(string, double, double, double, bool)
Adds a square check box.
public PdfCheckBox AddCheckBox(string name, double x, double y, double size, bool isChecked = false)
Parameters
namestringA unique field name, without dots.
xdoubleLeft edge of the box, in points.
ydoubleBottom edge of the box, in points.
sizedoubleSide length of the box, in points.
isCheckedboolThe initial state.
Returns
- PdfCheckBox
The check box.
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.