Aspose.Pdf.Examples.CSharp.AsposePDFFacades.Forms.GetButtonOptionValue.GetCurrentValue C# (CSharp) Method

GetCurrentValue() public static method

public static GetCurrentValue ( ) : void
return void
        public static void GetCurrentValue()
        {
            // ExStart:GetCurrentValue
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_AsposePdfFacades_Forms();

            // Create Form Object
            Aspose.Pdf.Facades.Form pdfForm = new Aspose.Pdf.Facades.Form();

            // Open Document
            pdfForm.BindPdf(dataDir + "FormField.pdf");

            // Get button option values
            string optionValue = pdfForm.GetButtonOptionCurrentValue("Gender");

            Console.WriteLine("Current Value : {0} ", optionValue);
            // ExEnd:GetCurrentValue
        }
    }
GetButtonOptionValue