OptionCollection
Overview
OptionCollection is a class in Aspose.PDF FOSS for Java.
Inherits from: Iterable<Option>.
Collection of options for choice fields (ComboBox/ListBox).
This class provides 7 methods for working with OptionCollection objects in Java programs.
Available methods include: OptionCollection, get, getCount, hasNext, iterator, next, size.
All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package.
Properties: count.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
count | int | Read | Returns the number of options. |
Methods
| Signature | Description |
|---|---|
OptionCollection(optArray: PdfArray) | Constructs an option collection from a /Opt PdfArray. |
getCount() → int | Returns the number of options. |
size() → int | Returns the number of options (alias for {@link #getCount()}). |
get(index: int) → Option | Returns the option at the given 0-based index. |
iterator() → Iterator<Option> | Returns an iterator over the options. |
hasNext() → boolean | Returns true if next is present. |
next() → Option |