PdfCheckBoxField
Represents a check box form field in a PDF document. Check boxes toggle between two states: checked and unchecked.
from nutrient import PdfCheckBoxFieldMethods
get_child
def get_child(self, index: int) -> PdfFormFieldParameters:
| Name | Type | Description |
|---|---|---|
index | int |
Returns: PdfFormField
get_widget
def get_widget(self, index: int) -> PdfWidgetAnnotationParameters:
| Name | Type | Description |
|---|---|---|
index | int |
Returns: PdfWidgetAnnotation
remove_child_at
def remove_child_at(self, index: int) -> NoneParameters:
| Name | Type | Description |
|---|---|---|
index | int |
set_background_color
def set_background_color(self, value: Color) -> NoneSets the background color of the check box.
Parameters:
| Name | Type | Description |
|---|---|---|
value | Color | The value to set for the BackgroundColor property. |
set_border_color
def set_border_color(self, value: Color) -> NoneSets the border color of the check box.
Parameters:
| Name | Type | Description |
|---|---|---|
value | Color | The value to set for the BorderColor property. |
set_is_checked
def set_is_checked(self, value: bool) -> NoneSets whether the check box is currently checked.
Parameters:
| Name | Type | Description |
|---|---|---|
value | bool | The value to set for the IsChecked property. |
set_is_read_only
def set_is_read_only(self, value: bool) -> NoneParameters:
| Name | Type | Description |
|---|---|---|
value | bool |
set_is_required
def set_is_required(self, value: bool) -> NoneParameters:
| Name | Type | Description |
|---|---|---|
value | bool |
set_value
def set_value(self, value: str) -> NoneParameters:
| Name | Type | Description |
|---|---|---|
value | str |
Properties
background_color
@propertydef background_color(self) -> ColorGets the background color of the check box.
Type: Color
Read-only property.
border_color
@propertydef border_color(self) -> ColorGets the border color of the check box.
Type: Color
Read-only property.
child_count
@propertydef child_count(self) -> intType: int
Read-only property.
default_value
@propertydef default_value(self) -> strType: str
Read-only property.
field_type
@propertydef field_type(self) -> PdfFormFieldTypeType: PdfFormFieldType
Read-only property.
full_name
@propertydef full_name(self) -> strType: str
Read-only property.
is_checked
@propertydef is_checked(self) -> boolGets whether the check box is currently checked.
Type: bool
Read-only property.
is_read_only
@propertydef is_read_only(self) -> boolType: bool
Read-only property.
is_required
@propertydef is_required(self) -> boolType: bool
Read-only property.
is_terminal
@propertydef is_terminal(self) -> boolType: bool
Read-only property.
name
@propertydef name(self) -> strType: str
Read-only property.
on_state_name
@propertydef on_state_name(self) -> strGets the “on” state name for this check box. This is the value used when the check box is checked (often “Yes” or “On”).
Type: str
Read-only property.
parent
@propertydef parent(self) -> PdfFormFieldType: PdfFormField
Read-only property.
value
@propertydef value(self) -> strType: str
Read-only property.
widget_count
@propertydef widget_count(self) -> intType: int
Read-only property.