Class WorkingTimeCollection
Namespace: Aspose.Tasks
Assembly: Aspose.Tasks.dll (25.2.0)
Represents a collection of Aspose.Tasks.WorkingTimeCollection objects.
public class WorkingTimeCollection : IList<workingtime>, ICollection<workingtime>, IEnumerable<workingtime>, IEnumerable
Inheritance
object ← WorkingTimeCollection
Implements
IList<workingtime>, ICollection<workingtime>, IEnumerable<workingtime>, IEnumerable
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Properties
Count
Gets the number of objects contained in this Aspose.Tasks.WorkingTimeCollection object.
public int Count { get; }
Property Value
this[int]
Returns the element at the specified index.
public WorkingTime this[int index] { get; set; }
Property Value
Methods
Add(WorkingTime)
Adds a new WorkingTime instance to this collection.
public bool Add(WorkingTime item)
Parameters
item
WorkingTime
The item to add.
Returns
true if WorkingTime object has been added successfully; otherwise, false.
Clear()
Removes all Aspose.Tasks.WorkingTime items from collection.
public void Clear()
Contains(WorkingTime)
Checks if the specified element is in the List. Performs a linear O(n) search.
public bool Contains(WorkingTime item)
Parameters
item
WorkingTime
the specified item.
Returns
True, if specified element found in the list, false otherwise.
CopyTo(WorkingTime[], int)
copies a collection content into an Array, starting at a particular index
public void CopyTo(WorkingTime[] array, int arrayIndex)
Parameters
array
WorkingTime[]
an array to copy to.
arrayIndex
int
starting array index
GetEnumerator()
Returns an enumerator for this collection.
public IEnumerator<workingtime> GetEnumerator()
Returns
an enumerator for this collection.
Remove(WorkingTime)
Removes Aspose.Tasks.WorkingTime instance from this collection.
public bool Remove(WorkingTime item)
Parameters
item
WorkingTime
The item to remove.
Returns
true if WorkingTime instance was successfully removed from this collection; otherwise, false.
ToList()
Converts the WorkingTimeCollection object to a list of Aspose.Tasks.WorkingTime objects.
public List<workingtime> ToList()
Returns
List<WorkingTime>
List of Aspose.Tasks.WorkingTime objects. </workingtime></workingtime></workingtime>