Class TimephasedDataCollection
Namespace: Aspose.Tasks
Assembly: Aspose.Tasks.dll (25.2.0)
Represents a collection of Aspose.Tasks.TimephasedData objects.
public abstract class TimephasedDataCollection : IList<timephaseddata>, ICollection<timephaseddata>, IEnumerable<timephaseddata>, IEnumerable
Inheritance
object ← TimephasedDataCollection
Implements
IList<timephaseddata>, ICollection<timephaseddata>, IEnumerable<timephaseddata>, IEnumerable
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
TimephasedDataCollection()
Initializes a new instance of the Aspose.Tasks.TimephasedDataCollection class.
protected TimephasedDataCollection()
Properties
Count
Gets the number of objects contained in this Aspose.Tasks.TimephasedDataCollection object.
public int Count { get; }
Property Value
IsReadOnly
Gets a value indicating whether the System.Collections.Generic.ICollection`1 is read-only.
public bool IsReadOnly { get; }
Property Value
this[int]
Returns the element at the specified index. The set accessor is not supported. property to set timephased data.
public TimephasedData this[int index] { get; set; }
Property Value
Methods
Add(TimephasedData)
Adds Aspose.Tasks.TimephasedData instance to this collection object.
public void Add(TimephasedData item)
Parameters
item
TimephasedData
The item to add.
Exceptions
if parameter td is null.
AddRange(IEnumerable<timephaseddata>)
Adds a collection of Aspose.Tasks.TimephasedData instances to this collection object.
public void AddRange(IEnumerable<timephaseddata> timephasedCollection)
Parameters
timephasedCollection
IEnumerable<TimephasedData>
A collection of Aspose.Tasks.TimephasedData objects to add.
Clear()
Removes all items from the Aspose.Tasks.TimephasedDataCollection.
public void Clear()
Contains(TimephasedData)
Determines whether the Aspose.Tasks.TimephasedDataCollection contains a specific value.
public bool Contains(TimephasedData item)
Parameters
item
TimephasedData
The object to locate in the collection.
Returns
true if item
is found in the collection; otherwise, false.
CopyTo(TimephasedData[], int)
Copies the elements of the Aspose.Tasks.TimephasedDataCollection to an System.Array, starting at a particular System.Array index.
public void CopyTo(TimephasedData[] array, int arrayIndex)
Parameters
array
TimephasedData[]
The one-dimensional System.Array that is the destination of the elements copied from Aspose.Tasks.TimephasedDataCollection. The System.Array must have zero-based indexing.
arrayIndex
int
The zero-based index in array
at which copying begins.
Exceptions
array
is null.
arrayIndex
is less than 0.
The number of elements in the source Aspose.Tasks.TimephasedDataCollection
is greater than the available space from arrayIndex
to the end of the destination array
.
GetEnumerator()
Returns an enumerator for this collection.
public IEnumerator<timephaseddata> GetEnumerator()
Returns
IEnumerator<TimephasedData>
an enumerator for this collection.
Remove(TimephasedData)
Removes Aspose.Tasks.TimephasedData instance from this collection object.
public bool Remove(TimephasedData item)
Parameters
item
TimephasedData
The item to remove.
Returns
true if item
was successfully removed from the Aspose.Tasks.TimephasedDataCollection; otherwise, false.
This method also returns false if item
is not found in the Aspose.Tasks.TimephasedDataCollection.
SelectBetweenStartAndFinish(TimephasedDataType, DateTime, DateTime)
Selects all time phases between startTime
and finishTime
. Has O(log n) complexity in average case.
public IList<timephaseddata> SelectBetweenStartAndFinish(TimephasedDataType timephasedDataType, DateTime startTime, DateTime finishTime)
Parameters
timephasedDataType
TimephasedDataType
Type of time phases to select.
startTime
DateTime
Interval’s start.
finishTime
DateTime
Interval’s finish.
Returns
IList<TimephasedData>
Returns new list instance of Aspose.Tasks.TimephasedDataCollection data ordered by Start property.
ToList()
Converts the Aspose.Tasks.TimephasedDataCollection object to a list of Aspose.Tasks.TimephasedData objects.
public List<timephaseddata> ToList()
Returns
List<TimephasedData>
List of Aspose.Tasks.TimephasedData objects. </timephaseddata></timephaseddata></timephaseddata></timephaseddata>