PdfTextField Class

A text field of an interactive form, where the user types a single line or several lines of text

Definition

Namespace: EvoPdf.Next
Assembly: EvoPdf.Next (in EvoPdf.Next.dll) Version: 15.0.0
C#
public sealed class PdfTextField : PdfWidgetFormField
Inheritance
Object    PdfFormField    PdfWidgetFormField    PdfTextField

Constructors

PdfTextField(String, Int32, PdfRectangleF) Creates a text field in the given rectangle of a page
PdfTextField(String, Int32, Single, Single, Single, Single) Creates a text field

Properties

Actions The actions performed by the PDF viewer on the events of the field
(Inherited from PdfFormField)
Alignment The horizontal alignment of the text in the field. The default value is Left
AutoFontSize A flag indicating if the font size is chosen automatically to fit the text in the field, ignoring the size of Font. The default value is false
BackgroundColor The background color of the field, or null for a transparent background. The default value is null
(Inherited from PdfWidgetFormField)
BorderColor The color of the field border, or null for no border. The default value is null
(Inherited from PdfWidgetFormField)
BorderStyle The style of the field border. The default value is Solid
(Inherited from PdfWidgetFormField)
BorderWidth The width of the field border, in points. The default value is 1
(Inherited from PdfWidgetFormField)
Comb A flag indicating if the field is divided into equal cells, one for each character, which requires a MaxLength. The default value is false
DefaultText The text restored in the field when the form is reset. The Text is used when it is not set
Description The description of the field shown by PDF viewers as a tooltip and read by assistive technology. The field name is used when it is not set
(Inherited from PdfFormField)
DoNotScroll A flag indicating if the text cannot scroll beyond the field bounds, so the user cannot type more than the field can display. The default value is false
DoNotSpellCheck A flag indicating if the PDF viewer does not spell check the text. The default value is false
Exportable A flag indicating if the value of the field is included when the form is submitted. The default value is true
(Inherited from PdfFormField)
FileSelect A flag indicating if the text is the path of a file whose contents are submitted with the form. The default value is false
Font The font of the text. A standard Helvetica font of 12 points is used when it is not set
Height The height of the field, in points
(Inherited from PdfWidgetFormField)
MappingName The name used for the field when the form data is exported. The field name is used when it is not set
(Inherited from PdfFormField)
MaxLength The maximum number of characters the user can type, or 0 for no limit. The default value is 0
Multiline A flag indicating if the field accepts several lines of text. The default value is false
Name The name of the field, unique in the document
(Inherited from PdfFormField)
PageNumber The 1-based number of the page where the field is placed
(Inherited from PdfWidgetFormField)
Password A flag indicating if the typed characters are displayed as asterisks. The default value is false
ReadOnly A flag indicating if the user cannot change the value of the field. The default value is false
(Inherited from PdfFormField)
Required A flag indicating if the field must have a value when the form is submitted. The default value is false
(Inherited from PdfFormField)
Text The text displayed in the field. The default value is an empty text
Visibility The visibility of the field on screen and in print. The default value is Visible
(Inherited from PdfWidgetFormField)
Width The width of the field, in points
(Inherited from PdfWidgetFormField)
X The left position of the field, in points, from the left margin of a document being created or from the left edge of the page of an edited document
(Inherited from PdfWidgetFormField)
Y The top position of the field, in points, from the top margin of a document being created or from the top edge of the page of an edited document
(Inherited from PdfWidgetFormField)

Methods

Equals
(Inherited from Object)
GetHashCode
(Inherited from Object)
GetType
(Inherited from Object)
ToString
(Inherited from Object)

See Also