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

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

public static CreateList ( PdfWriter writer, String options, int topIndex ) : PdfFormField
writer PdfWriter
options String
topIndex int
Результат PdfFormField
        public static PdfFormField CreateList(PdfWriter writer, String[] options, int topIndex)
        {
            return CreateChoice(writer, 0, ProcessOptions(options), topIndex);
        }

Usage Example

Пример #1
0
        public PdfFormField AddSelectList(string name, string[,] options, string defaultValue, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)
        {
            PdfFormField choice = PdfFormField.CreateList(writer, options, 0);

            SetChoiceParams(choice, name, defaultValue, llx, lly, urx, ury);
            StringBuilder text = new StringBuilder();

            for (int i = 0; i < options.GetLength(0); i++)
            {
                text.Append(options[i, 1]).Append('\n');
            }
            DrawMultiLineOfText(choice, text.ToString(), font, fontSize, llx, lly, urx, ury);
            AddFormField(choice);
            return(choice);
        }
All Usage Examples Of iTextSharp.text.pdf.PdfFormField::CreateList