PdfListBoxField constructor
PdfListBoxField(
- PdfPage page,
- String name,
- Rect bounds, {
- List<
PdfListFieldItem> ? items, - bool multiSelect = false,
- List<
int> ? selectedIndexes, - List<
String> ? selectedValues, - PdfFont? font,
- 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 PdfListBoxField class with the specific page and name.
Implementation
PdfListBoxField(PdfPage page, String name, Rect bounds,
{List<PdfListFieldItem>? items,
bool multiSelect = false,
List<int>? selectedIndexes,
List<String>? selectedValues,
PdfFont? font,
PdfTextAlignment alignment = PdfTextAlignment.left,
PdfColor? borderColor,
PdfColor? foreColor,
PdfColor? backColor,
int? borderWidth,
PdfHighlightMode highlightMode = PdfHighlightMode.invert,
PdfBorderStyle borderStyle = PdfBorderStyle.solid,
String? tooltip}) {
_helper = PdfListBoxFieldHelper(this);
_helper.initializeInternal(page, name, bounds,
font: font,
alignment: alignment,
items: items,
borderColor: borderColor,
foreColor: foreColor,
backColor: backColor,
borderWidth: borderWidth,
highlightMode: highlightMode,
borderStyle: borderStyle,
tooltip: tooltip);
this.multiSelect = multiSelect;
if (selectedIndexes != null) {
this.selectedIndexes = selectedIndexes;
}
if (selectedValues != null) {
this.selectedValues = selectedValues;
}
}