Class PdfCheckBox
A check box.
public sealed class PdfCheckBox : PdfFormField
- Inheritance
-
PdfCheckBox
- Inherited Members
Properties
IsChecked
Gets or sets whether the box is checked (sets the value to OnValue or "Off").
public bool IsChecked { get; set; }
Property Value
OnValue
The name of the "checked" state (usually "Yes" or "On").
public string OnValue { get; }
Property Value
Value
The state name: an "on" state such as OnValue, or "Off" (null or "" also means "Off"). Setting it updates /V and the /AS of all widgets.
public override string? Value { get; set; }
Property Value
Exceptions
- ArgumentException
The value is not one of the widgets' "on" states.
Methods
RegenerateAppearance()
Rebuilds the on/off appearances from /MK (symbol, colors, rotation) and the border width.
public override void RegenerateAppearance()