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

name string

A unique field name, without dots.

x double

Left edge of the box, in points.

y double

Bottom edge of the box, in points.

size double

Side length of the box, in points.

isChecked bool

The 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.