iTextSharp.text.pdf.PdfAcroForm.SetTextFieldParams C# (CSharp) Method

SetTextFieldParams() public method

public SetTextFieldParams ( PdfFormField field, string text, string name, float llx, float lly, float urx, float ury ) : void
field PdfFormField
text string
name string
llx float
lly float
urx float
ury float
return void
        public void SetTextFieldParams(PdfFormField field, string text, string name, float llx, float lly, float urx, float ury)
        {
            field.SetWidget(new Rectangle(llx, lly, urx, ury), PdfAnnotation.HIGHLIGHT_INVERT);
            field.ValueAsString = text;
            field.DefaultValueAsString = text;
            field.FieldName = name;
            field.Flags = PdfAnnotation.FLAGS_PRINT;
            field.SetPage();
        }