|
iText 9.8.0 API
|
A field that represents a control for selecting one of the provided options. More...
Public Member Functions |
|
| ComboBoxField (String id) | |
| Creates a new select field box. More... |
|
| virtual String | GetSelectedExportValue () |
| Gets the export value of the selected option. More... |
|
| virtual iText.Forms.Form.Element.ComboBoxField | SetSelected (int index) |
| Selects an option by its index. More... |
|
| virtual iText.Forms.Form.Element.ComboBoxField | SetSelected (String value) |
| Selects an option by its export value. More... |
|
| virtual iText.Forms.Form.Element.ComboBoxField | SetSelected (SelectFieldItem item) |
| Selects an option by its value. More... |
|
| override void | AddOption (SelectFieldItem option) |
| Add an option to the element. More... |
|
| virtual SelectFieldItem | GetSelectedOption () |
| Gets the selected option. More... |
|
| override AccessibilityProperties | GetAccessibilityProperties () |
| Gets the accessibility properties. More... |
|
Public Member Functions inherited from iText.Forms.Form.Element.AbstractSelectField |
|
| virtual void | AddOption (SelectFieldItem option, bool selected) |
| Add an option to the element. More... |
|
| virtual IList< SelectFieldItem > | GetOptions () |
| Get a list of SelectFieldItem. More... |
|
| virtual int | OptionsCount () |
| Gets the total amount of options available. More... |
|
| virtual bool | HasOptions () |
| Checks if the element has any options. More... |
|
| virtual SelectFieldItem | GetOption (String value) |
| Get an option SelectFieldItem by its string value. More... |
|
| virtual bool | HasExportAndDisplayValues () |
| Checks if the field has options with export and display values. More... |
|
Public Member Functions inherited from iText.Forms.Form.Element.FormField< iText.Forms.Form.Element.AbstractSelectField > |
|
| virtual T | SetSize (float size) |
| Sets the form field's width and height. More... |
|
| virtual IFormField | SetWidth (float width) |
| virtual IFormField | SetHeight (float height) |
| virtual IFormField | SetValue (String value) |
| virtual String | GetId () |
| override T1 | GetDefaultProperty< T1 > (int property) |
| virtual IFormField | SetInteractive (bool interactive) |
| virtual IFormField | SetAlternativeDescription (String alternativeDescription) |
| Sets the form field's alternative description. More... |
|
Protected Member Functions |
|
| override IRenderer | MakeNewRenderer () |
Additional Inherited Members |
|
Package Functions inherited from iText.Forms.Form.Element.AbstractSelectField |
|
| AbstractSelectField (String id) | |
| Instantiates a new AbstractSelectField instance. More... |
|
Package Attributes inherited from iText.Forms.Form.Element.AbstractSelectField |
|
| IList< SelectFieldItem > | options = new List<SelectFieldItem>() |
Package Attributes inherited from iText.Forms.Form.Element.FormField< iText.Forms.Form.Element.AbstractSelectField > |
|
| DefaultAccessibilityProperties | tagProperties |
| The tag properties. More... |
|
A field that represents a control for selecting one of the provided options.
|
inline |
Creates a new select field box.
| id | the id |
|
inlinevirtual |
Add an option to the element.
| option | a SelectFieldItem. |
Reimplemented from iText.Forms.Form.Element.AbstractSelectField.
|
inlinevirtual |
|
inlinevirtual |
Gets the export value of the selected option.
|
inlinevirtual |
Gets the selected option.
|
inlinevirtual |
Selects an option by its index.
Selects an option by its index. The index is zero-based.
| index | the index of the option to select. |
|
inlinevirtual |
Selects an option by its value.
Selects an option by its value. This will use the export value of the option to match it to existing options.
| item | the option to select. |
|
inlinevirtual |
Selects an option by its export value.
| value | the export value of the option to select. |