com.aspose.diagram

Class FontCollection

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

Contains a collection of Font elements.

Constructor Summary
FontCollection()
Constructor.
 
Property Getters/Setters Summary
intgetCount()
Gets the number of elements actually contained in the collection.
Fontget(intindex)
Gets the element at the specified index.
 
Method Summary
intadd(Font font)
Add the Font object in the collection.
voidclear()
Removes all elements from collection.
FontgetFont(intID)
Gets the element at the specified ID.
booleanisExist(intindex)
Is exist item in the collection.
java.util.Iteratoriterator()
Supports a simple iteration over a nongeneric collection.
voidremove(Font font)
Remove the Font object from the collection.
 

    • Constructor Detail

      • FontCollection

        public FontCollection()
        Constructor.
    • Property Getters/Setters Detail

      • getCount

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

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

      • add

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

        public void remove(Font font)
        Remove the Font object from the collection.
        Parameters:
        font -
      • getFont

        public Font getFont(int ID)
        Gets the element at the specified ID.
        Parameters:
        ID - intThe ID of the element within its parent element.
        Returns:
        FontFont.
      • 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.