PdfComboBoxField constructor
PdfComboBoxField(
- PdfPage page,
- String name,
- Rect bounds, {
- List<
PdfListFieldItem> ? items, - bool editable = false,
- int? selectedIndex,
- String? selectedValue,
- 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 PdfComboBoxField class with the specific page, name and bounds.
Implementation
PdfComboBoxField(PdfPage page, String name, Rect bounds,
{List<PdfListFieldItem>? items,
bool editable = false,
int? selectedIndex,
String? selectedValue,
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 = PdfComboBoxFieldHelper(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);
_helper.flags.add(FieldFlags.combo);
this.editable = editable;
if (selectedIndex != null) {
this.selectedIndex = selectedIndex;
}
if (selectedValue != null) {
this.selectedValue = selectedValue;
}
}