pub struct PdfFormComboBoxField<'a> { /* private fields */ }Expand description
A single PdfFormField of type PdfFormFieldType::ComboBox. The form field object defines
an interactive drop-down list widget that allows the user to either select a value
from a list of options or type a value into a text field.
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> PdfFormComboBoxField<'a>
impl<'a> PdfFormComboBoxField<'a>
Sourcepub fn bindings(&self) -> &'a dyn PdfiumLibraryBindings
pub fn bindings(&self) -> &'a dyn PdfiumLibraryBindings
Returns the PdfiumLibraryBindings used by this PdfFormComboBoxField object.
Sourcepub fn options(&self) -> &PdfFormFieldOptions<'_>
pub fn options(&self) -> &PdfFormFieldOptions<'_>
Returns the collection of selectable options in this PdfFormComboBoxField.
Sourcepub fn value(&self) -> Option<String>
pub fn value(&self) -> Option<String>
Returns the displayed label for the currently selected option in this PdfFormComboBoxField object, if any.
Trait Implementations§
Source§impl<'a> From<PdfFormComboBoxField<'a>> for PdfFormField<'a>
impl<'a> From<PdfFormComboBoxField<'a>> for PdfFormField<'a>
Source§fn from(field: PdfFormComboBoxField<'a>) -> Self
fn from(field: PdfFormComboBoxField<'a>) -> Self
Auto Trait Implementations§
impl<'a> Freeze for PdfFormComboBoxField<'a>
impl<'a> !RefUnwindSafe for PdfFormComboBoxField<'a>
impl<'a> !Send for PdfFormComboBoxField<'a>
impl<'a> !Sync for PdfFormComboBoxField<'a>
impl<'a> Unpin for PdfFormComboBoxField<'a>
impl<'a> !UnwindSafe for PdfFormComboBoxField<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more