Class OleObjectCollection
Namespace: Aspose.Tasks
Assembly: Aspose.Tasks.dll (25.12.0)
Represents a collection containing the instances of the Aspose.Tasks.OleObject class.
public sealed class OleObjectCollection : IList<OleObject>, ICollection<OleObject>, IEnumerable<OleObject>, IEnumerableInheritance
Implements
IList<OleObject> , ICollection<OleObject> , IEnumerable<OleObject> , IEnumerable
Inherited Members
object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Methods
Clear()
Clears the collection. In order to persist these changes project.Save should be called with new MPPSaveOptions { WriteViewData = true; }
public void Clear()Examples
How to clear OLE objects and persist these changes.
project.OleObjects.Clear();
project.Save("output.mpp", new MPPSaveOptions {WriteViewData = true;} )GetEnumerator()
Returns an enumerator for this collection.
public IEnumerator<OleObject> GetEnumerator()Returns
IEnumerator < OleObject >
an enumerator for this collection.
ToList()
Converts the instance of the Aspose.Tasks.OleObjectCollection class to a list containing the instances of the Aspose.Tasks.OleObject class.
public List<OleObject> ToList()Returns
Converted to list the instance of the Aspose.Tasks.OleObjectCollection class containing the instances of the Aspose.Tasks.OleObject class.