PDFTextBoxField¶
Namespace: O2S.Components.PDF4NET.Forms
Defines an interactive Acrobat textbox field.
Inheritance Object → PDFField → PDFTextBoxField
Constructors¶
PDFTextBoxField(String)¶
Initializes a new PDFTextBoxField object.
Parameters
name String
The field name.
Properties¶
AlternateName¶
Gets or sets the field alternate name.
Property Value
String
An alternate field name that shall be used in place of the actual field name wherever the field shall be
identified in the user interface.
CalculateAction¶
Gets or sets the calculate action.
Property Value
PDFJavaScriptAction
A PDFJavaScriptAction that shall be performed to recalculate the value of this field when that
of another field changes.
Comb¶
Gets or sets a value indicating whether the field is a comb.
Property Value
Boolean
If true, the field shall be automatically divided into as
many equally spaced positions, or combs, as the value of PDFTextBoxField.MaxLength,
and the text is laid out into those combs.
CosDictionary¶
Gets the underlying COS object.
Property Value
PDFCosDictionary
A PDFCosDictionary object that backs this field object.
DefaultValue¶
Gets or sets the field default value.
Property Value
Object
The field's default value.
Export¶
Gets or sets a value indicating whether the field can be exported or not.
Property Value
Boolean
If true, the field shall be exported by a submit-form action.
FileSelect¶
Gets or sets a value indicating whether the field acts as a file selector.
Property Value
Boolean
If true, the text entered in the field represents the pathname of a file
whose contents shall be submitted as the value of the field.
Form¶
Gets the Acrobat form this field belongs to.
Property Value
PDFForm
The parent form of the field.
FormatAction¶
Gets or sets the format action.
Property Value
PDFJavaScriptAction
A PDFJavaScriptAction that shall be performed before the field is formatted to display its
value.
KeyPressAction¶
Gets or sets the keypress action.
Property Value
PDFJavaScriptAction
A PDFJavaScriptAction that shall be performed when the user modifies a character in a text
field or combo box or modifies the selection in a scrollable list box.
MappingName¶
Gets or sets the field mapping name.
Property Value
String
The mapping name that shall be used when exporting interactive form field data from the document.
MaxLength¶
Gets or sets the maximum length of the field text.
Property Value
Int32
The maximum length of the field's text, in characters.
Multiline¶
Gets or sets a value indicating whether the field is multiline.
Property Value
Boolean
If true, the field may contain multiple lines of text;
if false, the field's text shall be restricted to a single line.
Name¶
Gets or sets the field name.
Property Value
String
The name of the field.
Exceptions
ArgumentException
Thrown when the name is not valid (null, empty, unsupported characters).
Password¶
Gets or sets a value indicating whether the field is intended for entering a secure password.
Property Value
Boolean
If true, the field is intended for entering a secure password that should not be echoed visibly to the screen.
Characters typed from the keyboard shall instead be echoed in some unreadable form, such as asterisks or bullet characters.
ReadOnly¶
Gets or sets a value indicating whether the field is read-only.
Property Value
Boolean
If true, the user may not change the value of the field. Any associated widget annotations will not interact
with the user; that is, they will not respond to mouse clicks or change their appearance in response to
mouse motions.
Required¶
Gets or sets a value indicating whether the field is required.
Property Value
Boolean
If true, the field shall have a value at the time it is exported by a submit-form action
Scroll¶
Gets or sets a value indicating whether the field text supports scrolling.
Property Value
Boolean
If false, the field shall not scroll (horizontally for single-line fields,
vertically for multiple-line fields) to accommodate more text than fits within its
annotation rectangle. Once the field is full, no further text shall be accepted for
interactive form filling; for non-interactive form filling, the filler should take
care not to add more character than will visibly fit in the defined area.
SpellCheck¶
Gets or sets a value indicating whether the field text shall be spell-checked.
Property Value
Boolean
If true, text entered in the field shall be spell-checked.
Text¶
Gets or sets the field value.
Property Value
String
A string that represents the field content.
TextDirection¶
Gets or sets the text direction.
Property Value
PDFTextDirection
A PDFTextDirection enum member specifying the direction of the text displayed in the field.
Type¶
Gets the field type.
Property Value
PDFFieldType
The field type.
ValidateAction¶
Gets or sets the validate action.
Property Value
PDFJavaScriptAction
A PDFJavaScriptAction that shall be performed when the field's value is changed. This action
may check the new value for validity.
Value¶
Gets or sets the field value.
Property Value
Object
The field value.
Widgets¶
Gets the list of field widgets.
Property Value
PDFFieldWidgetCollection
The list of widgets that represent the field on PDF pages.