Class OleObjectCollection

Class OleObjectCollection

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

Reprezentuje kolekcję zawierającą instancje klasy Aspose.Tasks.OleObject.

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

Dziedziczenie

objectOleObjectCollection

Implementuje

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

Członkowie dziedziczeni

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

Metody

Clear()

Czyści kolekcję. Aby zachować te zmiany, należy wywołać project.Save z nowymi MPPSaveOptions { WriteViewData = true; }

public void Clear()

Przykłady

Jak wyczyścić obiekty OLE i zachować te zmiany.

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

GetEnumerator()

Zwraca enumerator dla tej kolekcji.

public IEnumerator<oleobject> GetEnumerator()

Zwraca

IEnumerator<OleObject&gt;

enumerator dla tej kolekcji.

ToList()

Konwertuje instancję klasy Aspose.Tasks.OleObjectCollection na listę zawierającą instancje klasy Aspose.Tasks.OleObject.

public List<oleobject> ToList()

Zwraca

List<OleObject&gt;

Skonwertowana na listę instancja klasy Aspose.Tasks.OleObjectCollection zawierająca instancje klasy Aspose.Tasks.OleObject. </oleobject></oleobject></oleobject>

 Polski