com.aspose.diagram

Class TextCollection

  • java.lang.Object
  • All Implemented Interfaces:
    java.lang.Iterable
    public class TextCollection 
    extends Collection

Contains the text of a shape. Each item is text with character, paragraph and tabs properties.

Property Getters/Setters Summary
intgetCount()
Gets the number of elements actually contained in the collection.
Textget(int index)
Gets the element at the specified index.
 
Method Summary
intadd(Text item)
Add the Text object in the collection.
voidclear()
Removes all elements from collection.
booleanisExist(int index)
Is exist item in the collection.
java.util.Iteratoriterator()
Supports a simple iteration over a nongeneric collection.
voidremove(Text item)
Remove the Text object from the collection.
 

    • Property Getters/Setters Detail

      • getCount

        public int getCount()
        
        Gets the number of elements actually contained in the collection.
      • get

        public Text get(int index)
        
        Gets the element at the specified index.
        Parameters:
        index -
        Returns:
    • Method Detail

      • add

        public int add(Text item)
        Add the Text object in the collection.
        Parameters:
        item -
        Returns:
      • remove

        public void remove(Text item)
        Remove the Text object from the collection.
        Parameters:
        item -
      • iterator

        public java.util.Iterator iterator()
        Supports a simple iteration over a nongeneric collection.
        Returns:
      • isExist

        public boolean isExist(int index)
        Is exist item in the collection.
        Parameters:
        index - index of element.
        Returns:
      • clear

        public void clear()
        Removes all elements from collection.