Click or drag to resize
Pdf Library for .NET

PdfFormFieldCheckBox Class

A check box field.
Inheritance Hierarchy
SystemObject
  SelectPdf.UniversalPdfFormField
    SelectPdf.UniversalPdfFormFieldCheckBox

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntax
public class PdfFormFieldCheckBox : PdfFormField

The PdfFormFieldCheckBox type exposes the following members.

Properties
 NameDescription
Public propertyCheckedGets or sets a value indicating whether the check box is checked.
Public propertyDisplayPageGets the zero-based index of the page the field is on, or -1.
(Inherited from PdfFormField)
Public propertyDisplayRectangleGets the field rectangle on its page (in PDF points).
(Inherited from PdfFormField)
Public propertyFlattenGets or sets a value indicating whether this field is flattened on save.
(Inherited from PdfFormField)
Public propertyFullNameGets the fully-qualified field name.
(Inherited from PdfFormField)
Public propertyNameGets or sets the field name.
(Inherited from PdfFormField)
Public propertyReadOnlyGets or sets a value indicating whether the field is read-only.
(Inherited from PdfFormField)
Public propertyWidgetsGets the collection of widgets (visual placements) of this field.
(Inherited from PdfFormField)
Top
Methods
 NameDescription
Public methodGetWidgetCheckedValue Gets the checked state of a specific widget, for check boxes that have more than one widget.
Public methodSetWidgetCheckedValue Sets the checked state of a specific widget, for check boxes that have more than one widget.
Top
Example
PdfFormManager manager = new PdfFormManager();
manager.Load("form.pdf");
PdfFormFieldCheckBox agree =
    manager.Fields["agree"] as PdfFormFieldCheckBox;
agree.Checked = true;
manager.Save("filled.pdf");
See Also