pdfHTML 2.1.6 API
iText.Html2pdf.Attach.Impl.Layout.Form.Renderer.CheckBoxRenderer Class Reference

The AbstractOneLineTextFieldRenderer implementation for checkboxes. More...

Inheritance diagram for iText.Html2pdf.Attach.Impl.Layout.Form.Renderer.CheckBoxRenderer:
iText.Html2pdf.Attach.Impl.Layout.Form.Renderer.AbstractFormFieldRenderer

Public Member Functions

  CheckBoxRenderer (CheckBox modelElement)
  Creates a new CheckBoxRenderer instance. More...
 
override IRenderer  GetNextRenderer ()
 
virtual bool  IsBoxChecked ()
  Defines whether the box is checked or not. More...
 
- Public Member Functions inherited from iText.Html2pdf.Attach.Impl.Layout.Form.Renderer.AbstractFormFieldRenderer
virtual bool  IsFlatten ()
  Checks if form fields need to be flattened. More...
 
virtual String  GetDefaultValue ()
  Gets the default value of the form field. More...
 
override LayoutResult  Layout (LayoutContext layoutContext)
 
override void  Draw (DrawContext drawContext)
 
override void  DrawChildren (DrawContext drawContext)
 
virtual float  GetAscent ()
 
virtual float  GetDescent ()
 
override MinMaxWidth  GetMinMaxWidth ()
 

Additional Inherited Members

- Protected Member Functions inherited from iText.Html2pdf.Attach.Impl.Layout.Form.Renderer.AbstractFormFieldRenderer
override? float  RetrieveWidth (float parentBoxWidth)
 

Detailed Description

The AbstractOneLineTextFieldRenderer implementation for checkboxes.

Constructor & Destructor Documentation

◆ CheckBoxRenderer()

iText.Html2pdf.Attach.Impl.Layout.Form.Renderer.CheckBoxRenderer.CheckBoxRenderer ( CheckBox  modelElement )
inline

Creates a new CheckBoxRenderer instance.

Parameters
modelElement the model element

Member Function Documentation

◆ IsBoxChecked()

virtual bool iText.Html2pdf.Attach.Impl.Layout.Form.Renderer.CheckBoxRenderer.IsBoxChecked ( )
inlinevirtual

Defines whether the box is checked or not.

Returns
the default value of the checkbox field