Hi,
The code will be something like this:
Code: C#
PdfDocument doc = new PdfDocument();
AcmRender render = new AcmRender(doc);
//Create the radio buttons
AcmRadioButton rboption1 = new AcmRadioButton();
rboption1.Name = "option";
rboption1.Value = "choice 1";
AcmRadioButton rboption2 = new AcmRadioButton();
rboption2.Name = "option";
rboption2.Value = "choice 2";
AcmRadioButton rboption3 = new AcmRadioButton();
rboption3.Name = "option";
rboption3.Value = "choice 3";
//Render all the radio buttons
render.Render(rboption1, rboption2, rboption3);
//Set the second radio button as selected
rboption1.Group.SelectedIndex = 1;
Note that:
1. The radio button's Group property only exists after you call Render;
2. Each radio button must have a name and all radio buttons with the same name are grouped together;
Hope this helps. Please let us know if this works for you.
Thanks!