Class PdfTextField
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
Comb
True if the Comb flag is set.
public bool Comb { get; }
Property Value
MaxLength
Maximum length (/MaxLen), 0 if unlimited.
public int MaxLength { get; set; }
Property Value
Multiline
True if the Multiline flag is set.
public bool Multiline { get; }
Property Value
Password
True if the Password flag is set.
public bool Password { get; }
Property Value
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
Methods
RegenerateAppearance()
Rebuilds the appearance streams of all widgets from the current value, font, alignment and /MK settings.
public override void RegenerateAppearance()