
## WarningInfoCollection class

Represents a typed collection of [WarningInfo](../warninginfo/) objects.
To learn more, visit the [Programming with Documents](https://docs.aspose.com/words/nodejs-net/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
| Name | Description |
| --- | --- |
| [WarningInfoCollection()](./constructor/#default) | The default constructor. |

### Properties

| Name | Description |
| --- | --- |
| [count](./count/) | Gets the number of elements contained in the collection. |
| [this[]](./this[]/) |  |

### Methods

| Name | Description |
| --- | --- |
|[ clear()](./clear/#default) | Removes all elements from the collection. |
|[ warning(info)](./warning/#warninginfo) | Implements the Aspose.Words.IWarningCallback interface. Adds a warning to this collection. |

### See Also

* module [Aspose.Words](../)
* class [WarningInfo](../warninginfo/)

