iTextSharp.text.pdf.PdfAcroForm.AddComboBox C# (CSharp) Метод

AddComboBox() публичный Метод

public AddComboBox ( string name, string options, string defaultValue, bool editable, BaseFont font, float fontSize, float llx, float lly, float urx, float ury ) : PdfFormField
name string
options string
defaultValue string
editable bool
font BaseFont
fontSize float
llx float
lly float
urx float
ury float
Результат PdfFormField
        public PdfFormField AddComboBox(string name, string[] options, string defaultValue, bool editable, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)
        {
            PdfFormField choice = PdfFormField.CreateCombo(writer, editable, options, 0);
            SetChoiceParams(choice, name, defaultValue, llx, lly, urx, ury);
            if (defaultValue == null) {
            defaultValue = options[0];
            }
            DrawSingleLineOfText(choice, defaultValue, font, fontSize, llx, lly, urx, ury);
            AddFormField(choice);
            return choice;
        }