com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class TextSegmentCollection

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void add(TextSegment segment)
      Adds the text segment element at the specified index.
      void delete(int index)
      Deletes the text segment element at the specified index.
      TextSegment get_Item(int index)
      Gets the text segment element at the specified index.
      Object getSyncRoot()
      Gets an object that can be used to synchronize access to the collection.
      boolean isSynchronized()
      Gets a value indicating whether access to the collection is synchronized (thread safe).
      com.aspose.ms.System.Collections.IEnumerator iterator()
      Returns an enumerator for the entire collection.
      int size()
      Gets the number of TextSegment object elements actually contained in the collection.
    • Method Detail

      • size

        public int size()

        Gets the number of TextSegment object elements actually contained in the collection.

        Returns:
        int value
      • getSyncRoot

        public Object getSyncRoot()

        Gets an object that can be used to synchronize access to the collection.

        Returns:
        Object element
      • isSynchronized

        public boolean isSynchronized()

        Gets a value indicating whether access to the collection is synchronized (thread safe).

        Returns:
        boolean value
      • add

        public void add(TextSegment segment)

        Adds the text segment element at the specified index.

        Parameters:
        segment - Text segment object
      • delete

        public void delete(int index)

        Deletes the text segment element at the specified index.

        Parameters:
        index - int value
      • iterator

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

        Returns an enumerator for the entire collection.

        Specified by:
        iterator in interface Iterable<TextSegment>
        Returns:
        Enumerator object.
      • get_Item

        public TextSegment get_Item(int index)

        Gets the text segment element at the specified index.

        Parameters:
        index - Index within the collection.
        Returns:
        TextSegment object.