OptionCollection

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

NameTypeAccessDescription
countintReadReturns the number of options.

Methods

SignatureDescription
OptionCollection(optArray: PdfArray)Constructs an option collection from a /Opt PdfArray.
getCount()intReturns the number of options.
size()intReturns the number of options (alias for {@link #getCount()}).
get(index: int)OptionReturns the option at the given 0-based index.
iterator()Iterator<Option>Returns an iterator over the options.
hasNext()booleanReturns true if next is present.
next()Option

See Also

 English