PdfTextFieldOptions Class

The attributes of a text field created by PdfInteractiveForm.AddTextField.

public sealed class PdfTextFieldOptions : PdfFormFieldOptions
Inheritance
PdfFormFieldOptions PdfTextFieldOptions

Constructors

NameDescription
PdfTextFieldOptions()

PdfTextFieldOptions()

public PdfTextFieldOptions()

No documentation is available.

Properties

NameDescription
AlignmentGets or sets the alignment of the text: left, centered or right. The default is PdfTextAlignment.Left.
DoNotScrollGets or sets a value indicating whether viewers do not scroll the text when it does not fit in the field.
DoNotSpellCheckGets or sets a value indicating whether viewers do not check the spelling of the text.
IsCombGets or sets a value indicating whether the field is divided into PdfTextFieldOptions.MaxLength cells of one character. It needs PdfTextFieldOptions.MaxLength, and the field cannot be multiline nor a password.
IsMultilineGets or sets a value indicating whether the field can have several lines.
IsPasswordGets or sets a value indicating whether the text is a password, shown as asterisks.
MaxLengthGets or sets the maximum length of the text, or null for none.
ValueGets or sets the text of the field, or null for an empty field.

Gets or sets the alignment of the text: left, centered or right. The default is PdfTextAlignment.Left.

public PdfTextAlignment Alignment { get; set; }

Property value

PdfTextAlignment

Gets or sets a value indicating whether viewers do not scroll the text when it does not fit in the field.

public bool DoNotScroll { get; set; }

Property value

bool

DoNotSpellCheck

PdfTextFieldOptions.cs

Gets or sets a value indicating whether viewers do not check the spelling of the text.

public bool DoNotSpellCheck { get; set; }

Property value

bool

Gets or sets a value indicating whether the field is divided into PdfTextFieldOptions.MaxLength cells of one character. It needs PdfTextFieldOptions.MaxLength, and the field cannot be multiline nor a password.

public bool IsComb { get; set; }

Property value

bool

Gets or sets a value indicating whether the field can have several lines.

public bool IsMultiline { get; set; }

Property value

bool

Gets or sets a value indicating whether the text is a password, shown as asterisks.

public bool IsPassword { get; set; }

Property value

bool

Gets or sets the maximum length of the text, or null for none.

public int? MaxLength { get; set; }

Property value

int?

Gets or sets the text of the field, or null for an empty field.

public string? Value { get; set; }

Property value

string?