WarningInfoCollection class

WarningInfoCollection class

Represents a typed collection of WarningInfo objects. To learn more, visit the Programming with Documents documentation article.

Remarks

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.warning_callback or DocumentBase.warning_callback property.

Interfaces: IWarningCallback

Constructors

NameDescription
WarningInfoCollection()The default constructor.

Indexers

NameDescription
__getitem__(index)Gets an item at the specified index.

Properties

NameDescription
countGets the number of elements contained in the collection.

Methods

NameDescription
clear()Removes all elements from the collection.
warning(info)Implements the IWarningCallback interface. Adds a warning to this collection.

See Also