com.aspose.slides
Class FontCollection

java.lang.Object
  extended by com.aspose.slides.Fonts
      extended by com.aspose.slides.FontCollection
All Implemented Interfaces:
com.aspose.ms.System.Collections.ICollection<FontEntity>, com.aspose.ms.System.Collections.IEnumerable<FontEntity>, java.lang.Iterable<FontEntity>

public final class FontCollection
extends Fonts
implements com.aspose.ms.System.Collections.ICollection<FontEntity>

Represents a dictionary collection of a fonts used in a presentation.


Method Summary
 int add(FontEntity value)
           Adds a Font to the end of collection.
 void copyTo(com.aspose.ms.System.Array array, int index)
           Copies all elements from the collection to the specified array.
 FontEntity get_Item(int id)
           Gets the font by font id.
 int getCount()
           Gets the number of elements actually contained in the collection.
 java.lang.Object getSyncRoot()
           Returns a synchronization root.
 boolean isSynchronized()
           Returns a value indicating whether access to the collection is synchronized (thread-safe).
 com.aspose.ms.System.Collections.IEnumerator<FontEntity> iterator()
           Returns an enumerator for the entire collection.
 int size()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

copyTo

public void copyTo(com.aspose.ms.System.Array array,
                   int index)

Copies all elements from the collection to the specified array.

Specified by:
copyTo in interface com.aspose.ms.System.Collections.ICollection<FontEntity>
Parameters:
array - Target array.
index - Starting index in the target array.

isSynchronized

public boolean isSynchronized()

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

Specified by:
isSynchronized in interface com.aspose.ms.System.Collections.ICollection<FontEntity>

getSyncRoot

public java.lang.Object getSyncRoot()

Returns a synchronization root. Readonly object.

Specified by:
getSyncRoot in interface com.aspose.ms.System.Collections.ICollection<FontEntity>

size

public int size()
Specified by:
size in interface com.aspose.ms.System.Collections.ICollection<FontEntity>

getCount

public int getCount()
Description copied from class: Fonts

Gets the number of elements actually contained in the collection. Read-only int.

Overrides:
getCount in class Fonts

get_Item

public FontEntity get_Item(int id)
Description copied from class: Fonts

Gets the font by font id. Read-only FontEntity.

Overrides:
get_Item in class Fonts

add

public int add(FontEntity value)
Description copied from class: Fonts

Adds a Font to the end of collection.

Overrides:
add in class Fonts
Parameters:
value - The Font to be added to the the collection.
Returns:
The index of a new font.

iterator

public com.aspose.ms.System.Collections.IEnumerator<FontEntity> iterator()
Description copied from class: Fonts

Returns an enumerator for the entire collection.

Specified by:
iterator in interface com.aspose.ms.System.Collections.IEnumerable<FontEntity>
Specified by:
iterator in interface java.lang.Iterable<FontEntity>
Overrides:
iterator in class Fonts
Returns:
An IDictionaryEnumerator for the entire collection.