com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class OptionCollection

  • All Implemented Interfaces:
    Iterable


    public final class OptionCollection
    extends Object
    implements Iterable

    Class representing collection of options of the choice field.

    • Method Detail

      • isSynchronized

        public boolean isSynchronized()

        Returns true of object is synchronized.

        Returns:
        boolean value
      • getSyncRoot

        public Object getSyncRoot()

        Synchronization object of the collection.

        Returns:
        Object element
      • size

        public int size()

        Gets number of options.

        Returns:
        int value
      • iterator

        public com.aspose.ms.System.Collections.IEnumerator iterator()

        Returns enumerator for options in collection.

        Specified by:
        iterator in interface Iterable
        Returns:
        Options enumerator.
      • get

        public Option get(int index)

        Gets option by index.

        Parameters:
        index - Option index. Index should be in range [1..n] where n is options count.
        Returns:
        Retreived option.
      • get

        public Option get(String name)

        Gets option from colleciton by option name.

        Parameters:
        name - Option name.
        Returns:
        Retreived option.
      • get_Item

        public Option get_Item(int index)

        Gets option by index.

        Parameters:
        index - Index of the option.
        Returns:
        Option on the specified index.
      • get_Item

        public Option get_Item(String name)

        Gets option by its name.

        Parameters:
        name - Name of the option.
        Returns:
        Found option.
      • deleteOption

        public void deleteOption(String name)

        Deletes option by its name.

        Parameters:
        name - Name of the option to delete.