PdfCheckBoxField constructor

PdfCheckBoxField(
  1. PdfPage page,
  2. String name,
  3. Rect bounds, {
  4. bool isChecked = false,
  5. PdfCheckBoxStyle style = PdfCheckBoxStyle.check,
  6. PdfColor? borderColor,
  7. PdfColor? backColor,
  8. PdfColor? foreColor,
  9. int? borderWidth,
  10. PdfHighlightMode highlightMode = PdfHighlightMode.invert,
  11. PdfBorderStyle borderStyle = PdfBorderStyle.solid,
  12. String? tooltip,
})

Initializes a new instance of the PdfCheckBoxField class with the specific page, name and bounds.

Implementation

PdfCheckBoxField(PdfPage page, String name, Rect bounds,
    {bool isChecked = false,
    PdfCheckBoxStyle style = PdfCheckBoxStyle.check,
    PdfColor? borderColor,
    PdfColor? backColor,
    PdfColor? foreColor,
    int? borderWidth,
    PdfHighlightMode highlightMode = PdfHighlightMode.invert,
    PdfBorderStyle borderStyle = PdfBorderStyle.solid,
    String? tooltip}) {
  _helper = PdfCheckBoxFieldHelper(this);
  _helper.initialize(page, name, bounds,
      style: style,
      borderColor: borderColor,
      backColor: backColor,
      foreColor: foreColor,
      borderWidth: borderWidth,
      highlightMode: highlightMode,
      borderStyle: borderStyle,
      tooltip: tooltip);
  _setCheckBoxValue(isChecked);
}