asposediagram.api

Class FontCollection

Contains a collection of Font elements.

Constructor Summary
FontCollection()
Constructor.
 
Property Getters/Setters Summary
methodgetCount()
Gets the number of elements actually contained in the collection.
methodget(index)
Gets the element at the specified index.
 
Method Summary
methodadd(font)
Add the Font object in the collection.
methodclear()
Removes all elements from collection.
methodgetFont(ID)
Gets the element at the specified ID.
methodisExist(index)
Is exist item in the collection.
methoditerator()
Supports a simple iteration over a nongeneric collection.
methodremove(font)
Remove the Font object from the collection.
 

    • Constructor Detail

      • FontCollection

        FontCollection()
        Constructor.
    • Property Getters/Setters Detail

      • getCount : int 

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

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

      • add

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

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

        Font getFont(ID)
        Gets the element at the specified ID.
        Parameters:
        ID: int - intThe ID of the element within its parent element.
        Returns:
        FontFont.
      • iterator

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

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

         clear()
        Removes all elements from collection.