pub struct PdfFormListBoxField<'a> { /* private fields */ }Expand description
A single PdfFormField of type PdfFormFieldType::ListBox. The form field object defines
an interactive drop-down list widget that allows the user to select a value from
a list of options.
Form fields in Pdfium are wrapped inside page annotations of type PdfPageAnnotationType::Widget
or PdfPageAnnotationType::XfaWidget. User-specified values can be retrieved directly from
each form field object by unwrapping the form field from the annotation, or in bulk from the
PdfForm::field_values() function.
Implementations§
source§impl<'a> PdfFormListBoxField<'a>
impl<'a> PdfFormListBoxField<'a>
sourcepub fn bindings(&self) -> &'a dyn PdfiumLibraryBindings
pub fn bindings(&self) -> &'a dyn PdfiumLibraryBindings
Returns the PdfiumLibraryBindings used by this PdfFormListBoxField object.
sourcepub fn options(&self) -> &PdfFormFieldOptions<'_>
pub fn options(&self) -> &PdfFormFieldOptions<'_>
Returns the collection of selectable options in this PdfFormListBoxField.
sourcepub fn value(&self) -> Option<String>
pub fn value(&self) -> Option<String>
Returns the displayed label for the currently selected option in this PdfFormListBoxField object, if any.