Class CheckBox
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
stringthe id
Methods
GetAccessibilityProperties()
public override AccessibilityProperties GetAccessibilityProperties()
Returns
MakeNewRenderer()
protected override IRenderer MakeNewRenderer()
Returns
SetCheckBoxType(CheckBoxType)
Sets the icon of the checkbox.
public virtual CheckBox SetCheckBoxType(CheckBoxType checkBoxType)
Parameters
checkBoxType
CheckBoxTypethe 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
boolthe 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
PdfAConformanceLevelThe 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
IConformanceLevelThe 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
floatthe size of the checkbox to set, in points
Returns
- CheckBox
this checkbox instance