multiline property
bool
get
multiline
Gets or sets a value indicating whether this PdfTextBoxField is multiline.
The default value is false.
Implementation
bool get multiline {
if (_helper.isLoadedField) {
_multiline = _helper.isFlagPresent(FieldFlags.multiline) ||
_helper.flags.contains(FieldFlags.multiline);
}
return _multiline;
}
set
multiline
(bool value)
Implementation
set multiline(bool value) {
if (multiline != value) {
_multiline = value;
if (_multiline) {
_helper.flags.add(FieldFlags.multiline);
_helper.format!.lineAlignment = PdfVerticalAlignment.top;
} else {
_helper.isLoadedField
? _helper.removeFlag(FieldFlags.multiline)
: _helper.flags.remove(FieldFlags.multiline);
_helper.format!.lineAlignment = PdfVerticalAlignment.middle;
}
}
}