com.aspose.words
Class GeneralFormatCollection

java.lang.Object
    extended by com.aspose.words.GeneralFormatCollection
All Implemented Interfaces:
java.lang.Iterable

public class GeneralFormatCollection 
extends java.lang.Object

Represents a typed collection of general formats.

Property Getters/Setters Summary
intgetCount()
           Gets the total number of the items in the collection.
intget(int index)
           Gets a general format at the specified index. The value of the property is GeneralFormat integer constant.
 
Method Summary
voidadd(int item)
           Adds a general format to the collection.
java.util.Iteratoriterator()
          
voidremove(int item)
           Removes all occurrences of the specified general format from the collection.
voidremoveAt(int index)
           Removes a general format occurrence at the specified index.
 

Property Getters/Setters Detail

getCount

public int getCount()
Gets the total number of the items in the collection.

get

public int get(int index)
Gets a general format at the specified index. The value of the property is GeneralFormat integer constant.
Parameters:
index - The index of a general format.
Returns:
A general format.

Method Detail

add

public void add(int item)
        throws java.lang.Exception
Adds a general format to the collection.
Parameters:
item - A GeneralFormat value. A general format.

iterator

public java.util.Iterator iterator()

remove

public void remove(int item)
           throws java.lang.Exception
Removes all occurrences of the specified general format from the collection.
Parameters:
item - A GeneralFormat value. A general format.

removeAt

public void removeAt(int index)
             throws java.lang.Exception
Removes a general format occurrence at the specified index.
Parameters:
index -

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