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 Aspose.Words.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 Aspose.Words.Loading.LoadOptions.WarningCallback or Aspose.Words.DocumentBase.WarningCallback property.

Constructors

NameDescription
WarningInfoCollection()The default constructor.

Properties

NameDescription
countGets the number of elements contained in the collection.
this[]

Methods

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

See Also