/// <inheritdoc /> /// <summary> /// Create a new <see cref="T:UglyToad.PdfPig.AcroForms.Fields.AcroTextField" />. /// </summary> /// <param name="dictionary">The dictionary for this field.</param> /// <param name="fieldType">The type of this field, must be <see cref="F:UglyToad.PdfPig.Tokens.NameToken.Ch" />.</param> /// <param name="fieldFlags">The flags specifying behaviour for this field.</param> /// <param name="information">Additional information for this field.</param> /// <param name="value">The text value.</param> /// <param name="maxLength">The maximum length.</param> public AcroTextField(DictionaryToken dictionary, string fieldType, AcroTextFieldFlags fieldFlags, AcroFieldCommonInformation information, string value, int?maxLength) : base(dictionary, fieldType, (uint)fieldFlags, information) { Flags = fieldFlags; Value = value; MaxLength = maxLength; IsRichText = Flags.HasFlag(AcroTextFieldFlags.RichText); IsMultiline = Flags.HasFlag(AcroTextFieldFlags.Multiline); }
/// <inheritdoc /> /// <summary> /// Create a new <see cref="T:UglyToad.PdfPig.AcroForms.Fields.AcroTextField" />. /// </summary> /// <param name="dictionary">The dictionary for this field.</param> /// <param name="fieldType">The type of this field, must be <see cref="F:UglyToad.PdfPig.Tokens.NameToken.Ch" />.</param> /// <param name="fieldFlags">The flags specifying behaviour for this field.</param> /// <param name="information">Additional information for this field.</param> /// <param name="value">The text value.</param> /// <param name="maxLength">The maximum length.</param> /// <param name="pageNumber">The number of the page this field appears on.</param> /// <param name="bounds">The location of this field on the page.</param> public AcroTextField(DictionaryToken dictionary, string fieldType, AcroTextFieldFlags fieldFlags, AcroFieldCommonInformation information, string value, int?maxLength, int?pageNumber, PdfRectangle?bounds) : base(dictionary, fieldType, (uint)fieldFlags, AcroFieldType.Text, information, pageNumber, bounds) { Flags = fieldFlags; Value = value; MaxLength = maxLength; IsRichText = Flags.HasFlag(AcroTextFieldFlags.RichText); IsMultiline = Flags.HasFlag(AcroTextFieldFlags.Multiline); }