Method AddRadioGroup

Namespace
SoftZenPdf
Assembly
SoftZenPdf.dll

AddRadioGroup(string, double, params (string Value, double X, double Y)[])

Adds a group of round radio buttons on this page, of which at most one can be selected. Use AddRadioGroup(string) and AddOption(PdfPage, string, double, double, double) to spread options over several pages.

public PdfRadioGroup AddRadioGroup(string name, double size, params (string Value, double X, double Y)[] options)

Parameters

name string

A unique field name, without dots.

size double

Width and height of each button, in points.

options (string Value, double X, double Y)[]

Each option's export value and the lower-left corner of its button.

Returns

PdfRadioGroup

The radio group; set Value to preselect an option.

Exceptions

ArgumentException

The name is invalid or used, or an option value is empty, duplicated or Off.

InvalidOperationException

The document was created for PDF/A, where form fields are not supported yet.