Skip to content

Commit 403cf10

Browse files
910367_sample: Resolve the feedback.
1 parent f1e7702 commit 403cf10

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Forms/Default-value-for-radio-button-field/.NET/Default_Value_For_Radio_Button/Default_Value_For_Radio_Button.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="Syncfusion.Pdf.Net.Core" Version="26.2.14" />
11+
<PackageReference Include="Syncfusion.Pdf.Net.Core" Version="*" />
1212
</ItemGroup>
1313

1414
<ItemGroup>

Forms/Default-value-for-radio-button-field/.NET/Default_Value_For_Radio_Button/Program.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
// Add a new page to the PDF document
1010
PdfPage page = document.Pages.Add();
1111

12-
// Create a new radio button list field named "employeesRadioList"
13-
PdfRadioButtonListField employeesRadioList = new PdfRadioButtonListField(page, "employeesRadioList");
12+
// Create a new radio button list field
13+
PdfRadioButtonListField genderRadioList = new PdfRadioButtonListField(page, "gender");
1414
// Create a font
1515
PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular);
1616

@@ -31,7 +31,7 @@
3131
page.Graphics.DrawString("Female", font, PdfBrushes.Black, new RectangleF(225, 204, 180, 20));
3232
// Add the radio button item to the list
3333
employeesRadioList.Items.Add(radioItem2);
34-
34+
//Set the default value of the radio button field.
3535
employeesRadioList.SelectedIndex = 1;
3636
// Add the radio button list to the form
3737
document.Form.Fields.Add(employeesRadioList);

0 commit comments

Comments
 (0)