PdfTextBoxField constructor
PdfTextBoxField(
- PdfPage page,
- String name,
- Rect bounds, {
- PdfFont? font,
- String? text,
- String? defaultValue,
- int maxLength = 0,
- bool spellCheck = false,
- bool insertSpaces = false,
- bool multiline = false,
- bool isPassword = false,
- bool scrollable = false,
- PdfTextAlignment alignment = PdfTextAlignment.left,
- PdfColor? borderColor,
- PdfColor? foreColor,
- PdfColor? backColor,
- int? borderWidth,
- PdfHighlightMode highlightMode = PdfHighlightMode.invert,
- PdfBorderStyle borderStyle = PdfBorderStyle.solid,
- String? tooltip,
Initializes a new instance of the PdfTextBoxField class with the provided page and name.
Implementation
PdfTextBoxField(PdfPage page, String name, Rect bounds,
{PdfFont? font,
String? text,
String? defaultValue,
int maxLength = 0,
bool spellCheck = false,
bool insertSpaces = false,
bool multiline = false,
bool isPassword = false,
bool scrollable = false,
PdfTextAlignment alignment = PdfTextAlignment.left,
PdfColor? borderColor,
PdfColor? foreColor,
PdfColor? backColor,
int? borderWidth,
PdfHighlightMode highlightMode = PdfHighlightMode.invert,
PdfBorderStyle borderStyle = PdfBorderStyle.solid,
String? tooltip}) {
_helper = PdfTextBoxFieldHelper(this);
_helper.internal(page, name, bounds,
font: font,
alignment: alignment,
borderColor: borderColor,
foreColor: foreColor,
backColor: backColor,
borderWidth: borderWidth,
highlightMode: highlightMode,
borderStyle: borderStyle,
tooltip: tooltip);
this.font = font ?? PdfStandardFont(PdfFontFamily.helvetica, 8);
_init(text, defaultValue, maxLength, spellCheck, insertSpaces, multiline,
isPassword, scrollable);
_helper.flags.add(FieldFlags.doNotSpellCheck);
_helper.dictionary!.setProperty(
PdfDictionaryProperties.ft, PdfName(PdfDictionaryProperties.tx));
}