Class TimephasedDataCollection
Numele spaţiului: Aspose.Tasks Asamblare: Aspose.Tasks.dll (25.4.0)
Reprezintă o colecție de obiecte Aspose.Tasks.TimephasedData.
public abstract class TimephasedDataCollection : IList<timephaseddata>, ICollection<timephaseddata>, IEnumerable<timephaseddata>, IEnumerable
Inheritance
object ← TimephasedDataCollection
Implements
IList
Membrii moștenitori
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
TimephasedDataCollection()
Inițializează o nouă instanță a clasei Aspose.Tasks.TimephasedDataCollection.
protected TimephasedDataCollection()
Properties
Count
Obține numărul de obiecte conținute în acest obiect Aspose.Tasks.TimephasedDataCollection.
public int Count { get; }
Valoarea proprietății
IsReadOnly
Obține o valoare care indică dacă System.Collections.Generic.ICollection`1 este citit numai.
public bool IsReadOnly { get; }
Valoarea proprietății
Această[int]
Întoarce elementul la indexul specificat. accesorul set nu este susținut.Proprietate pentru a stabili date orare.
public TimephasedData this[int index] { get; set; }
Valoarea proprietății
Methods
Add(TimephasedData)
Ads Aspose.Tasks.TimephasedData instanta la acest obiect de colectare.
public void Add(TimephasedData item)
Parameters
item
TimephasedData
Obiectul care trebuie adăugat.
Exceptions
dacă parametrul td este zero.
AddRange(Cuvânt cheie )
Adăugați o colecție de Aspose.Tasks.TimephasedInstanțe de date la acest obiect de colecție.
public void AddRange(IEnumerable<timephaseddata> timephasedCollection)
Parameters
timephasedCollection
IEnumerable
<
TimephasedData
>
O colecție de Aspose.Tasks.TimephasedObiectele de date pentru a adăuga.
Clear()
Îndepărtează toate elementele din Aspose.Tasks.TimephasedDataCollection.
public void Clear()
Contains(TimephasedData)
Determine dacă Aspose.Tasks.TimephasedDataCollection conține o valoare specifică.
public bool Contains(TimephasedData item)
Parameters
item
TimephasedData
Obiectul care trebuie găsit în colecție.
Returns
adevărat dacă item’ este găsit în colecție; altfel, fals.
CopyTo(TimephasedData[], în int)
Copiază elementele Aspose.Tasks.TimephasedDataCollection la un System.Array,Începând cu un anumit sistem.Array index.
public void CopyTo(TimephasedData[] array, int arrayIndex)
Parameters
array
TimephasedData
[]
Sistemul unic-dimensional.Array care este destinația elementelor copiate din Aspose.Tasks.TimephasedDataCollection.Sistemul.Array trebuie să aibă indexare bazată pe zero.
arrayIndex
int
Indicele bazat pe zero în array’ la care începe copierea.
Exceptions
array’ is null.
arrayIndex’ is less than 0.
Numărul de elemente din sursa Aspose.Tasks.TimephasedDataCollectionis este mai mare decât spațiul disponibil de la arrayIndex’ la sfârșitul destinației
array'.
GetEnumerator()
Întoarce un enumerator pentru această colecție.
public IEnumerator<timephaseddata> GetEnumerator()
Returns
IEnumerator < TimephasedData >
un enumerator pentru această colecție.
Remove(TimephasedData)
Îndepărtează Aspose.Tasks.TimephasedData instanta din acest obiect de colectare.
public bool Remove(TimephasedData item)
Parameters
item
TimephasedData
Obiectul care trebuie eliminat.
Returns
adevărat dacă item’ a fost îndepărtat cu succes din Aspose.Tasks.TimephasedDataCollection; altfel, false.Această metodă returnează false dacă
item’ nu este găsit în Aspose.Tasks.TimephasedDataCollection.
SelectBetweenStartAndFinish(DateType, dateType, dateType)
Selectați toate fazele de timp între startTime’ și
finishTime'.
public IList<timephaseddata> SelectBetweenStartAndFinish(TimephasedDataType timephasedDataType, DateTime startTime, DateTime finishTime)
Parameters
timephasedDataType
TimephasedDataType
Tipul de faze de timp pentru a alege.
startTime
DateTime
Începutul intervalului.
finishTime
DateTime
Încheierea intervalului.
Returns
IList < TimephasedData >
Întoarce o nouă listă de date Aspose.Tasks.TimephasedDataCollection comandate de proprietatea Start.
ToList()
Convertează obiectul Aspose.Tasks.TimephasedDataCollection într-o listă a obiectelor Aspose.Tasks.TimephasedData.
public List<timephaseddata> ToList()
Returns
List < TimephasedData >
Lista obiectelor Aspose.Tasks.TimephasedData.