Table of Contents

Class CheckBox

Namespace
iText.Forms.Form.Element
Assembly
itext.forms.dll

Extension of the FormField<T> class representing a checkbox so that a CheckBoxRenderer is used instead of the default renderer for fields.

public class CheckBox : FormField<CheckBox>, IFormField, IBlockElement, IAbstractElement, IElement, IPropertyContainer, IAccessibleElement
Inheritance
CheckBox
Implements
Inherited Members

Constructors

CheckBox(string)

Creates a new CheckBox instance.

public CheckBox(string id)

Parameters

id string

the id

Methods

GetAccessibilityProperties()

public override AccessibilityProperties GetAccessibilityProperties()

Returns

AccessibilityProperties

MakeNewRenderer()

protected override IRenderer MakeNewRenderer()

Returns

IRenderer

SetCheckBoxType(CheckBoxType)

Sets the icon of the checkbox.

public virtual CheckBox SetCheckBoxType(CheckBoxType checkBoxType)

Parameters

checkBoxType CheckBoxType

the type of the checkbox to set

Returns

CheckBox

this checkbox instance

SetChecked(bool)

Sets the checked state of the checkbox.

public virtual CheckBox SetChecked(bool @checked)

Parameters

checked bool

the checked state to set

Returns

CheckBox

this checkbox instance

SetPdfAConformanceLevel(PdfAConformanceLevel)

Sets the PDF/A conformance level for the checkbox.

[Obsolete]
public virtual CheckBox SetPdfAConformanceLevel(PdfAConformanceLevel conformanceLevel)

Parameters

conformanceLevel PdfAConformanceLevel

The PDF/A conformance level to set.

Returns

CheckBox

This checkbox instance.

Remarks

Sets the PDF/A conformance level for the checkbox. This method is deprecated use setPdfConformanceLevel.

SetPdfConformanceLevel(IConformanceLevel)

Sets the conformance level for the checkbox.

public virtual CheckBox SetPdfConformanceLevel(IConformanceLevel conformanceLevel)

Parameters

conformanceLevel IConformanceLevel

The PDF/A conformance level to set.

Returns

CheckBox

tThis checkbox instance.

SetSize(float)

Sets the size of the checkbox.

public override CheckBox SetSize(float size)

Parameters

size float

the size of the checkbox to set, in points

Returns

CheckBox

this checkbox instance