PdfRadioButtonField
Represents a radio button form field in a PDF document. Radio buttons are part of a mutually exclusive group where only one option can be selected.
from nutrient import PdfRadioButtonFieldMethods
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_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_selected_option
def set_selected_option(self, value: str) -> NoneSets the currently selected option value. Set to “Off” to deselect all options.
Parameters:
| Name | Type | Description |
|---|---|---|
value | str | The value to set for the SelectedOption property. |
set_value
def set_value(self, value: str) -> NoneParameters:
| Name | Type | Description |
|---|---|---|
value | str |
Properties
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.
has_selection
@propertydef has_selection(self) -> boolGets whether any option is currently selected.
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.
option_count
@propertydef option_count(self) -> intGets the number of options (radio buttons) in this group.
Type: int
Read-only property.
parent
@propertydef parent(self) -> PdfFormFieldType: PdfFormField
Read-only property.
selected_option
@propertydef selected_option(self) -> strGets the currently selected option value. Set to “Off” to deselect all options.
Type: str
Read-only property.
value
@propertydef value(self) -> strType: str
Read-only property.
widget_count
@propertydef widget_count(self) -> intType: int
Read-only property.