Class OleObjectCollection

Class OleObjectCollection

Namespace: Aspose.Tasks
Assembly: Aspose.Tasks.dll (25.2.0)

表示包含 Aspose.Tasks.OleObject 类实例的集合。

public sealed class OleObjectCollection : IList<oleobject>, ICollection<oleobject>, IEnumerable<oleobject>, IEnumerable

继承

objectOleObjectCollection

实现

IList<oleobject>, ICollection<oleobject>, IEnumerable<oleobject>, IEnumerable

继承的成员

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

方法

Clear()

清除集合。为了持久化这些更改,应调用 project.Save,并使用新的 MPPSaveOptions { WriteViewData = true; }

public void Clear()

示例

如何清除 OLE 对象并持久化这些更改。

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

GetEnumerator()

返回此集合的枚举器。

public IEnumerator<oleobject> GetEnumerator()

返回

IEnumerator<OleObject&gt;

此集合的枚举器。

ToList()

将 Aspose.Tasks.OleObjectCollection 类的实例转换为包含 Aspose.Tasks.OleObject 类实例的列表。

public List<oleobject> ToList()

返回

List<OleObject&gt;

转换为列表的 Aspose.Tasks.OleObjectCollection 类的实例,包含 Aspose.Tasks.OleObject 类的实例。

 中文