Table of Contents

Class PdfCheckBox

Namespace
MiPdf.Forms
Assembly
MiPdf.dll

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

bool

OnValue

The name of the "checked" state (usually "Yes" or "On").

public string OnValue { get; }

Property Value

string

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

string

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()