Class AcroTextField
A text field is a box or space in which the user can enter text from the keyboard. The text may be restricted to a single line or may be permitted to span multiple lines.
public class AcroTextField : AcroFieldBase
- Inheritance
-
AcroTextField
- Inherited Members
- Extension Methods
Constructors
AcroTextField(DictionaryToken, string, AcroTextFieldFlags, AcroFieldCommonInformation, string, int?, int?, PdfRectangle?)
Create a new AcroTextField.
public AcroTextField(DictionaryToken dictionary, string fieldType, AcroTextFieldFlags fieldFlags, AcroFieldCommonInformation information, string value, int? maxLength, int? pageNumber, PdfRectangle? bounds)
Parameters
dictionary
DictionaryTokenThe dictionary for this field.
fieldType
stringThe type of this field, must be Ch.
fieldFlags
AcroTextFieldFlagsThe flags specifying behaviour for this field.
information
AcroFieldCommonInformationAdditional information for this field.
value
stringThe text value.
maxLength
int?The maximum length.
pageNumber
int?The number of the page this field appears on.
bounds
PdfRectangle?The location of this field on the page.
Properties
Flags
The flags specifying the behaviour of this field.
public AcroTextFieldFlags Flags { get; }
Property Value
IsMultiline
Whether the field allows multiline text.
public bool IsMultiline { get; }
Property Value
IsRichText
Whether the field supports rich text content.
public bool IsRichText { get; }
Property Value
MaxLength
The optional maximum length of the text field.
public int? MaxLength { get; }
Property Value
- int?
Value
The value of the text in this text field. This can be null if no value has been set.
public string Value { get; }
Property Value
Methods
ToString()
public override string ToString()