Aspose.Tasks for C++
Aspose::Tasks::OleObjectCollection Class Referencefinal

Represents a collection containing the instances of the OleObject class. More...

#include <OleObjectCollection.h>

Inherits System::Collections::Generic::IList< typename >.

Public Member Functions

System::SharedPtr< System::Collections::Generic::IEnumerator< System::SharedPtr< OleObject > > > GetEnumerator () override
 Returns an enumerator for this collection. More...
 
System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< OleObject > > > ToList ()
 Converts the instance of the OleObjectCollection class to a list containing the instances of the OleObject class. More...
 
void Clear () override
 Clears the collection. In order to persist these changes project.Save should be called with new MPPSaveOptions { WriteViewData = true; } More...
 

Detailed Description

Represents a collection containing the instances of the OleObject class.

Member Function Documentation

◆ Clear()

void Aspose::Tasks::OleObjectCollection::Clear ( )
override

Clears the collection. In order to persist these changes project.Save should be called with new MPPSaveOptions { WriteViewData = true; }

How to clear OLE objects and persist these changes.

[C#]
project.OleObjects.Clear();
project.Save("output.mpp", new MPPSaveOptions {WriteViewData = true;} )

◆ GetEnumerator()

System::SharedPtr<System::Collections::Generic::IEnumerator<System::SharedPtr<OleObject> > > Aspose::Tasks::OleObjectCollection::GetEnumerator ( )
override

Returns an enumerator for this collection.

Returns
an enumerator for this collection.

◆ ToList()

System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<OleObject> > > Aspose::Tasks::OleObjectCollection::ToList ( )

Converts the instance of the OleObjectCollection class to a list containing the instances of the OleObject class.

Returns
Converted to list the instance of the OleObjectCollection class containing the instances of the OleObject class.