|
iText 8.0.4 API
|
A field that represents a control for selecting one or several of the provided options. More...
Public Member Functions |
|
| ListBoxField (String id, int size, bool allowMultipleSelection) | |
| Create a new list box field. More... |
|
| override T1 | GetDefaultProperty< T1 > (int property) |
| virtual iText.Forms.Form.Element.ListBoxField | AddOption (String option) |
| Add an option for ListBoxField. More... |
|
| virtual iText.Forms.Form.Element.ListBoxField | AddOption (String option, bool selected) |
| Add an option for ListBoxField. More... |
|
| virtual IList< String > | GetSelectedStrings () |
| Get a list of selected options. More... |
|
| override AccessibilityProperties | GetAccessibilityProperties () |
| Gets the accessibility properties. More... |
|
Public Member Functions inherited from iText.Forms.Form.Element.AbstractSelectField |
|
| virtual void | AddOption (IBlockElement optionElement) |
| Add a container with options. More... |
|
| virtual void | AddOption (SelectFieldItem option) |
| Add an option to the element. More... |
|
| virtual void | AddOption (SelectFieldItem option, bool selected) |
| Add an option to the element. More... |
|
| virtual IList< SelectFieldItem > | GetItems () |
| 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 IList< IBlockElement > | GetOptions () |
| Gets a list of containers with option(s). 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) |
Protected Member Functions |
|
| override IRenderer | MakeNewRenderer () |
A field that represents a control for selecting one or several of the provided options.
|
inline |
Create a new list box field.
| size | the size of the list box, which will define the height of visible properties, shall be greater than zero |
| allowMultipleSelection | a boolean flag that defines whether multiple options are allowed to be selected at once |
| id | the id |
|
inlinevirtual |
Add an option for ListBoxField.
Add an option for ListBoxField . The option is not selected.
| option | string representation of the option. |
|
inlinevirtual |
Add an option for ListBoxField.
| option | string representation of the option. |
| selected |
true is the option if selected, false otherwise.
|
inlinevirtual |
|
inlinevirtual |
Get a list of selected options.