Package com.ironsoftware.ironpdf.form
Class ComboBoxField
java.lang.Object
com.ironsoftware.ironpdf.form.FormField
com.ironsoftware.ironpdf.form.ComboBoxField
The type Combo box field.
- 
Constructor SummaryConstructorsConstructorDescriptionComboBoxField(int annotationIndex, String name, int pageIndex, double x, double y, double width, double height, String value, List<String> options, int selectedIndex, boolean readOnly) (INTERNAL) Please Get ComboBoxField fromFormFieldsSet.getComboBoxFields()fromFormManager.getFields()
- 
Method SummaryModifier and TypeMethodDescriptionGets options.final intGets The index of the selected option.Methods inherited from class com.ironsoftware.ironpdf.form.FormFieldgetAnnotationIndex, getHeight, getName, getPageIndex, getType, getValue, getWidth, getX, getY, isReadOnly
- 
Constructor Details- 
ComboBoxFieldpublic ComboBoxField(int annotationIndex, String name, int pageIndex, double x, double y, double width, double height, String value, List<String> options, int selectedIndex, boolean readOnly) (INTERNAL) Please Get ComboBoxField fromFormFieldsSet.getComboBoxFields()fromFormManager.getFields()- Parameters:
- annotationIndex- the annotation index
- name- the name
- pageIndex- the page index
- x- the x
- y- the y
- width- the width
- height- the height
- value- the value
- options- the options
- selectedIndex- the selected index
- readOnly- the read only
 
 
- 
- 
Method Details- 
getOptionsGets options. The available options for the combo-box in zero based index order.- Returns:
- the option names as strings.
 
- 
getSelectedIndexpublic final int getSelectedIndex()Gets The index of the selected option.- Returns:
- the index of the selected. 0 based.
 
 
-