PdfCheckBoxField Class
A check box (ISO 32000-2, 12.7.5.2.3): a button that is on or off.
public sealed class PdfCheckBoxField : PdfFormField- Inheritance
PdfFormFieldPdfCheckBoxField
Properties
| Name | Description |
|---|---|
| IsChecked | Gets or sets a value indicating whether the box is checked: its value (/V) and the appearance state of its widgets (/AS) are the on state, or Off. |
| OnValue | Gets the name of the on state: the appearance state of the widgets that is not Off, such as Yes. |
| Value | Gets or sets the value: the on state when the box is checked, Off otherwise. Setting null or Off unchecks it. |
IsChecked
PdfCheckBoxField.csGets or sets a value indicating whether the box is checked: its value (/V) and the appearance state of its widgets (/AS) are the on state, or Off.
public bool IsChecked { get; set; }OnValue
PdfCheckBoxField.csValue
PdfCheckBoxField.csGets or sets the value: the on state when the box is checked, Off otherwise. Setting null or Off unchecks it.
public override string? Value { get; set; }Property value
Exceptions
ArgumentException- The value is neither the on state nor
Off. InvalidOperationException- The field is read-only.