From 403cf10140fd8f680bf750fac45961de52c690c7 Mon Sep 17 00:00:00 2001 From: Srihariharan Date: Thu, 19 Sep 2024 16:11:18 +0530 Subject: [PATCH] 910367_sample: Resolve the feedback. --- .../Default_Value_For_Radio_Button.csproj | 2 +- .../.NET/Default_Value_For_Radio_Button/Program.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Forms/Default-value-for-radio-button-field/.NET/Default_Value_For_Radio_Button/Default_Value_For_Radio_Button.csproj b/Forms/Default-value-for-radio-button-field/.NET/Default_Value_For_Radio_Button/Default_Value_For_Radio_Button.csproj index a052c36d..e155146e 100644 --- a/Forms/Default-value-for-radio-button-field/.NET/Default_Value_For_Radio_Button/Default_Value_For_Radio_Button.csproj +++ b/Forms/Default-value-for-radio-button-field/.NET/Default_Value_For_Radio_Button/Default_Value_For_Radio_Button.csproj @@ -8,7 +8,7 @@ - + diff --git a/Forms/Default-value-for-radio-button-field/.NET/Default_Value_For_Radio_Button/Program.cs b/Forms/Default-value-for-radio-button-field/.NET/Default_Value_For_Radio_Button/Program.cs index 4366f91e..cf698259 100644 --- a/Forms/Default-value-for-radio-button-field/.NET/Default_Value_For_Radio_Button/Program.cs +++ b/Forms/Default-value-for-radio-button-field/.NET/Default_Value_For_Radio_Button/Program.cs @@ -9,8 +9,8 @@ // Add a new page to the PDF document PdfPage page = document.Pages.Add(); -// Create a new radio button list field named "employeesRadioList" -PdfRadioButtonListField employeesRadioList = new PdfRadioButtonListField(page, "employeesRadioList"); +// Create a new radio button list field +PdfRadioButtonListField genderRadioList = new PdfRadioButtonListField(page, "gender"); // Create a font PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); @@ -31,7 +31,7 @@ page.Graphics.DrawString("Female", font, PdfBrushes.Black, new RectangleF(225, 204, 180, 20)); // Add the radio button item to the list employeesRadioList.Items.Add(radioItem2); - +//Set the default value of the radio button field. employeesRadioList.SelectedIndex = 1; // Add the radio button list to the form document.Form.Fields.Add(employeesRadioList);