Class OleObjectCollection
Namespace: Aspose.Tasks
Assembly: Aspose.Tasks.dll (25.2.0)
Represents a collection containing the instances of the Aspose.Tasks.OleObject class.
public sealed class OleObjectCollection : IList<oleobject>, ICollection<oleobject>, IEnumerable<oleobject>, IEnumerable
Inheritance
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.
csharp
[C#]
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. </oleobject></oleobject></oleobject>