Aspose::Words::WarningInfoCollection Class Reference

Represents a typed collection of Aspose::Words::WarningInfo objects. More...

#include "Aspose.Words.Cpp/Model/Document/WarningInfoCollection.h"

Inherits IWarningCallback, and IEnumerable< System::SharedPtr< Aspose::Words::WarningInfo > >.

Public Member Functions

int32_t get_Count ()
 Gets the number of elements contained in the collection. More...
 
System::SharedPtr< Aspose::Words::WarningInfoidx_get (int32_t index)
 Gets an item at the specified index. More...
 
System::SharedPtr< System::Collections::Generic::IEnumerator< System::SharedPtr< Aspose::Words::WarningInfo > > > GetEnumerator ()
 Returns an enumerator object that can be used to iterate over all items in the collection. More...
 
void Clear ()
 Removes all elements from the collection. More...
 
void Warning (System::SharedPtr< Aspose::Words::WarningInfo > info)
 Implements the Aspose::Words::IWarningCallback interface. Adds a warning to this collection. More...
 
 WarningInfoCollection ()
 

Detailed Description

Represents a typed collection of Aspose::Words::WarningInfo objects.

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::LoadOptions::get_WarningCallback or Aspose::Words::DocumentBase::get_WarningCallback property.

See also
Aspose::Words::WarningInfo, Aspose::Words::IWarningCallback

Constructor & Destructor Documentation

◆ WarningInfoCollection()

Aspose::Words::WarningInfoCollection::WarningInfoCollection ( )

Member Function Documentation

◆ Clear()

void Aspose::Words::WarningInfoCollection::Clear ( )

Removes all elements from the collection.

◆ get_Count()

int32_t Aspose::Words::WarningInfoCollection::get_Count ( )

Gets the number of elements contained in the collection.

◆ GetEnumerator()

System::SharedPtr<System::Collections::Generic::IEnumerator<System::SharedPtr<Aspose::Words::WarningInfo> > > Aspose::Words::WarningInfoCollection::GetEnumerator ( )

Returns an enumerator object that can be used to iterate over all items in the collection.

◆ idx_get()

System::SharedPtr<Aspose::Words::WarningInfo> Aspose::Words::WarningInfoCollection::idx_get ( int32_t  index)

Gets an item at the specified index.

Parameters
indexZero-based index of the item.

◆ Warning()

void Aspose::Words::WarningInfoCollection::Warning ( System::SharedPtr< Aspose::Words::WarningInfo info)

Implements the Aspose::Words::IWarningCallback interface. Adds a warning to this collection.