PdfRadioButtonField Class

A group of radio buttons (ISO 32000-2, 12.7.5.2.4): one widget per option, of which one at most is on.

public sealed class PdfRadioButtonField : PdfFormField
Inheritance
PdfFormField PdfRadioButtonField

Properties

NameDescription
OptionsGets the options: the on states of the widgets, in their order.
ValueGets or sets the option that is on, or null when none is. Setting it sets the value (/V) and the appearance states of the widgets (/AS).

Gets the options: the on states of the widgets, in their order.

public IReadOnlyList<string> Options { get; }

Property value

IReadOnlyList<string>

Gets or sets the option that is on, or null when none is. Setting it sets the value (/V) and the appearance states of the widgets (/AS).

public override string? Value { get; set; }

Property value

string?

Exceptions

ArgumentException
The value is not an option of the field.
InvalidOperationException
The field is read-only.