iTextSharp.text.pdf.PdfFormField.CreateCombo C# (CSharp) Метод

CreateCombo() публичный статический Метод

public static CreateCombo ( PdfWriter writer, bool edit, String options, int topIndex ) : PdfFormField
writer PdfWriter
edit bool
options String
topIndex int
Результат PdfFormField
        public static PdfFormField CreateCombo(PdfWriter writer, bool edit, String[] options, int topIndex)
        {
            return CreateChoice(writer, FF_COMBO + (edit ? FF_EDIT : 0), ProcessOptions(options), topIndex);
        }

Usage Example

Пример #1
0
        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);
        }
All Usage Examples Of iTextSharp.text.pdf.PdfFormField::CreateCombo