com.aspose.words
Class FontInfoCollection

java.lang.Object
    extended by com.aspose.words.FontInfoCollection
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Iterable

public class FontInfoCollection 
extends java.lang.Object

Represents a collection of fonts used in a document.

Items are FontInfo objects.

You do not create instances of this class directly. Use the DocumentBase.FontInfos property to access the collection of fonts defined in the document.

See Also:
FontInfo, DocumentBase.FontInfos

Property Getters/Setters Summary
intgetCount()
           Gets the number of elements contained in the collection.
FontInfoget(int index)
           Gets a font at the specified index.
FontInfoget(java.lang.String name)
           Gets a font with the specified name.
 
Method Summary
booleancontains(java.lang.String name)
           Determines whether the collection contains a font with the given name.
java.util.Iteratoriterator()
           Returns an iterator object that can be used to iterate over all items in the collection.
 

Property Getters/Setters Detail

getCount

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

get

public FontInfo get(java.lang.String name)
Gets a font with the specified name.
Parameters:
name - Case-insensitive name of the font to locate.

get

public FontInfo get(int index)
Gets a font at the specified index.
Parameters:
index - Zero-based index of the font.

Method Detail

iterator

public java.util.Iterator iterator()
Returns an iterator object that can be used to iterate over all items in the collection.

contains

public boolean contains(java.lang.String name)
Determines whether the collection contains a font with the given name.
Parameters:
name - Case-insensitive name of the font to locate.
Returns:
True if the item is found in the collection; otherwise, false.

See Also:
          Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
          Aspose.Words Support Forum - our preferred method of support.