Table of Contents

Class PdfTextField

Namespace
MiPdf.Forms
Assembly
MiPdf.dll

A text field.

public sealed class PdfTextField : PdfFormField
Inheritance
PdfTextField
Inherited Members

Properties

Alignment

Text alignment (/Q): left, center or right. Form fields cannot be justified; setting Justify throws an ArgumentException.

public TextAlignment Alignment { get; set; }

Property Value

TextAlignment

Comb

True if the Comb flag is set.

public bool Comb { get; }

Property Value

bool

MaxLength

Maximum length (/MaxLen), 0 if unlimited.

public int MaxLength { get; set; }

Property Value

int

Multiline

True if the Multiline flag is set.

public bool Multiline { get; }

Property Value

bool

Password

True if the Password flag is set.

public bool Password { get; }

Property Value

bool

Value

The text value (/V). Setting it truncates the text to MaxLength (if set), stores it (null removes the value) and regenerates the appearance.

public override string? Value { get; set; }

Property Value

string

Methods

RegenerateAppearance()

Rebuilds the appearance streams of all widgets from the current value, font, alignment and /MK settings.

public override void RegenerateAppearance()