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
การสืบทอด
การใช้งาน
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 objects และเก็บการเปลี่ยนแปลงเหล่านี้
project.OleObjects.Clear();
project.Save("output.mpp", new MPPSaveOptions {WriteViewData = true;} )
GetEnumerator()
ส่งคืน enumerator สำหรับคอลเลกชันนี้
public IEnumerator<oleobject> GetEnumerator()
ส่งคืน
IEnumerator<OleObject>
enumerator สำหรับคอลเลกชันนี้
ToList()
แปลงอินสแตนซ์ของคลาส Aspose.Tasks.OleObjectCollection เป็นรายการที่มีอินสแตนซ์ของคลาส Aspose.Tasks.OleObject
public List<oleobject> ToList()
ส่งคืน
แปลงเป็นรายการของอินสแตนซ์ของคลาส Aspose.Tasks.OleObjectCollection ที่มีอินสแตนซ์ของคลาส Aspose.Tasks.OleObject