com.aspose.omr

Class OmrElementsCollection

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


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

    Represents a collection of elements on a page.

    • Constructor Detail

      • OmrElementsCollection

        public OmrElementsCollection()

        Initializes a new instance of the OmrElementsCollection class.

      • OmrElementsCollection

        public OmrElementsCollection(Iterable<BasicElement> elements)

        Initializes a new instance of the OmrElementsCollection class.

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

      • copyTo

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

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

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

        public BasicElement getItem(int index)

        Gets the element at the specified index.

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

        public int indexOf(BasicElement value)

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

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

        public void insert(int index,
                  BasicElement value)

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

        Parameters:
        index - The zero-based index at which the new elements should be inserted.
        value - The element that should be inserted into the OmrElementsCollection.
      • 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,
                   BasicElement value)

        Sets the element at the specified index.

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