java.lang.Object
com.aspose.words.WarningInfoCollection
- All Implemented Interfaces:
- IWarningCallback, java.lang.Iterable
public class WarningInfoCollection
- extends java.lang.Object
Represents a typed collection of WarningInfo objects.
You can use this collection object as the simplest form of IWarningCallback implementation to gather
all warnings that Aspose.Words generates during a load or save operation. Create an instance of this class and assign it
to the LoadOptions.WarningCallback or SaveOptions.WarningCallback property.
- See Also:
- WarningInfo, IWarningCallback
Property Getters/Setters Summary |
int | getCount() | |
|
Gets the number of elements contained in the collection.
|
WarningInfo | get(int index) | |
|
Gets an item at the specified index.
|
Method Summary |
void | clear() | |
Removes all elements from the collection.
|
java.util.Iterator | iterator() | |
Returns an iterator object that can be used to iterate over all items in the collection.
|
void | warning(WarningInfo info) | |
Implements the IWarningCallback interface. Adds a warning to this collection.
|
WarningInfoCollection
public WarningInfoCollection()
-
Initializes an instance of this class.
Property Getters/Setters Detail |
getCount | |
public int getCount()
|
-
Gets the number of elements contained in the collection.
-
Gets an item at the specified index.
- Parameters:
index
- Zero-based index of the item.
clear | |
public void clear() |
-
Removes all elements from the collection.
iterator | |
public java.util.Iterator iterator() |
-
Returns an iterator object that can be used to iterate over all items in the collection.
-
Implements the IWarningCallback interface. Adds a warning to this collection.
See Also:
Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
Aspose.Words Support Forum - our preferred method of support.