Table of Contents

Method AddRadioButtonGroup

Namespace
PdfSharp.Pdf.Forms
Assembly
PdfSharp.dll

AddRadioButtonGroup(string, PdfPage, IReadOnlyList<(string Value, XRect Rectangle)>, PdfFormFieldStyle?)

Adds a group of radio buttons on one page, none selected. Each button's value is its export value and the name of its on state; select one with SelectedValue. "Off" is the name of the off state and cannot be a value, nor can a value start with a slash.

public PdfFormRadioButtonField AddRadioButtonGroup(string name, PdfPage page, IReadOnlyList<(string Value, XRect Rectangle)> buttons, PdfFormFieldStyle? style = null)

Parameters

name string
page PdfPage
buttons IReadOnlyList<(string Value, XRect Rectangle)>
style PdfFormFieldStyle

Returns

PdfFormRadioButtonField