com.aspose.omr

Class OmrPagesCollection

  • java.lang.Object
    • com.aspose.ms.System.Collections.CollectionBase
      • com.aspose.omr.OmrPagesCollection
  • All Implemented Interfaces:
    com.aspose.ms.System.Collections.ICollection, com.aspose.ms.System.Collections.IEnumerable, com.aspose.ms.System.Collections.IList, Iterable


    public class OmrPagesCollection
    extends com.aspose.ms.System.Collections.CollectionBase

    Represent a collection of pages in an OMR template

    • Constructor Detail

      • OmrPagesCollection

        public OmrPagesCollection()

        Initializes a new instance of the OmrPagesCollection class.

      • OmrPagesCollection

        public OmrPagesCollection(Collection<OmrPage> pages)

        Initializes a new instance of the OmrPagesCollection class.

        Parameters:
        pages - The ordered collection of pages.
    • Method Detail

      • copyTo

        public void copyTo(OmrPage[] array,
                  int index)

        Copies the elements of the OmrPagesCollection to an array, starting at a particular array index.

        Parameters:
        array - The one-dimensional array that is the destination of the elements copied from OmrPagesCollection. The array must have zero-based indexing.
        index - The zero-based index in array at which copying begins.
      • getItem

        public OmrPage getItem(int index)

        Gets the element at the specified index.

        Parameters:
        index - The zero-based index of the element to get or set.
        Returns:
        The element at the specified index.
      • indexOf

        public int indexOf(OmrPage value)

        Searches for the specified OmrPage and returns the zero-based index of the first occurrence within the entire OmrPagesCollection.

        Parameters:
        value - The OmrPage to locate in the OmrPagesCollection. The value cannot be null.
        Returns:
        The zero-based index of the first occurrence of value within the entire OmrPagesCollection, if found; otherwise, -1.
      • insert

        public void insert(int index,
                  OmrPage value)

        Inserts the elements of a collection into the OmrPagesCollection at the specified index.

        Parameters:
        index - The zero-based index at which the new elements should be inserted.
        value - The OmrPage that should be inserted into the OmrPage.
      • onValidate

        protected void onValidate(Object value)

        Performs additional custom processes when validating a value.

        Overrides:
        onValidate in class com.aspose.ms.System.Collections.CollectionBase
        Parameters:
        value - The object to validate.
      • setItem

        public void setItem(int index,
                   OmrPage value)

        Sets the element at the specified index.

        Parameters:
        index - The zero-based index of the element to get or set.