WarningInfoCollectionClear Method

Removes all elements from the collection.

Namespace:  Aspose.Words
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public void Clear()
Examples
Shows how to read and clear a collection of warnings.
WarningInfoCollection wic = new WarningInfoCollection();

using (IEnumerator<WarningInfo> enumerator = wic.GetEnumerator())
{
    while (enumerator.MoveNext())
    {
        WarningInfo wi = enumerator.Current;
        if (wi != null) Console.WriteLine(wi.Description);
    }

    wic.Clear();
}
See Also