Class WeekDayCollection

Class WeekDayCollection

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

Represents a collection of Aspose.Tasks.WeekDay objects.

public class WeekDayCollection : IList<weekday>, ICollection<weekday>, IEnumerable<weekday>, IEnumerable

Inheritance

objectWeekDayCollection

Implements

IList<weekday>, ICollection<weekday>, IEnumerable<weekday>, 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.WeekDayCollection object.

public int Count { get; }

Property Value

int

this[int]

Gets or sets the item value at specified index.

public WeekDay this[int index] { get; set; }

Property Value

WeekDay

Methods

Add(WeekDay)

Adds a Aspose.Tasks.WeekDay instance to this object.

public void Add(WeekDay item)

Parameters

item WeekDay

The item to add.

Clear()

Clear the WeekDayCollection object.

public void Clear()

Contains(WeekDay)

Checks if collection contains Aspose.Tasks.WeekDay.specified.

public bool Contains(WeekDay item)

Parameters

item WeekDay

The item to check against to.

Returns

bool

true, if collection contains item specified, of false otherwise.

CopyTo(WeekDay[], int)

Copies collection content to an array at specified index.

public void CopyTo(WeekDay[] array, int arrayIndex)

Parameters

array WeekDay[]

Destination array of Aspose.Tasks.WeekDay to copy to

arrayIndex int

Starting index for copy operation.

GetEnumerator()

Returns an enumerator for this collection.

public IEnumerator<weekday> GetEnumerator()

Returns

IEnumerator<WeekDay&gt;

an enumerator for this collection.

IndexOf(WeekDay)

Returns index of Aspose.Tasks.WeekDay specified.

public int IndexOf(WeekDay item)

Parameters

item WeekDay

The item to check against to.

Returns

int

Zero-based index of Aspose.Tasks.WeekDay specified, if present, or -1 otherwise.

Insert(int, WeekDay)

Inserts Aspose.Tasks.WeekDay at specified index.

public void Insert(int index, WeekDay item)

Parameters

index int

Index to insert to.

item WeekDay

The item to insert.

Remove(WeekDay)

Removes Aspose.Tasks.WeekDay specified, if any.

public bool Remove(WeekDay item)

Parameters

item WeekDay

The item to remove.

Returns

bool

True, if Aspose.Tasks.WeekDay was removed, false if such item was not found.

RemoveAt(int)

Removes an item at specified index.

public void RemoveAt(int index)

Parameters

index int

index of item to delete.

ToList()

Converts the WeekDayCollection object to a list of Aspose.Tasks.WeekDay objects.

public List<weekday> ToList()

Returns

List<WeekDay&gt;

List of Aspose.Tasks.WeekDay objects. </weekday></weekday></weekday>