com.spire.doc.collections
Class CollectionEx

java.lang.Object
  extended by com.spire.doc.OwnerHolder
      extended by com.spire.doc.collections.CollectionEx
All Implemented Interfaces:
java.lang.Iterable
Direct Known Subclasses:
BookmarkCollection, CommentsCollection, DocumentSerializableCollection, FieldCollection, FormFieldCollection, PermissionCollection, TextBoxCollection

public abstract class CollectionEx
extends OwnerHolder
implements java.lang.Iterable

This class implements the Collection interface.


Constructor Summary
protected CollectionEx(Document doc, OwnerHolder owner)
          Initializes a new instance of the CollectionEx class.
 
Method Summary
 int getCount()
          Gets the number of items in the collection.
 java.util.Iterator iterator()
          Returns an enumerator that iterates through a collection.
 
Methods inherited from class com.spire.doc.OwnerHolder
getDocument
 

Constructor Detail

CollectionEx

protected CollectionEx(Document doc,
                       OwnerHolder owner)
Initializes a new instance of the CollectionEx class.

Parameters:
doc - The doc.
owner - The owner.
Method Detail

getCount

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

Returns:
The count.

iterator

public java.util.Iterator iterator()
Returns an enumerator that iterates through a collection.

Returns:
An Iterator object that can be used to iterate through the collection.