Class DayTypeCollection
Namespace: Aspose.Tasks
Assembly: Aspose.Tasks.dll (25.2.0)
表示一组 Aspose.Tasks.DayType 对象。
public class DayTypeCollection : IList<daytype>, ICollection<daytype>, IEnumerable<daytype>, IEnumerable
继承
实现
IList<daytype>, ICollection<daytype>, IEnumerable<daytype>, IEnumerable
继承的成员
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
属性
Count
获取此集合中包含的元素数量。
public int Count { get; }
属性值
IsReadOnly
获取一个值,指示此集合是否为只读;否则为 false。
public bool IsReadOnly { get; }
属性值
this[int]
返回或设置指定索引处的元素。
public DayType this[int index] { get; set; }
属性值
方法
Add(DayType)
将指定项添加到此集合中。
public void Add(DayType item)
参数
item
DayType
要添加到此集合中的指定项。
Clear()
从此集合中移除所有项。
public void Clear()
Contains(DayType)
如果在此集合中找到指定项,则返回 true;否则返回 false。
public bool Contains(DayType item)
参数
item
DayType
要查找的指定项。
返回
如果在此集合中找到指定项,则返回 true;否则返回 false。
CopyTo(DayType[], int)
将此集合的元素复制到指定数组,从指定数组索引开始。
public void CopyTo(DayType[] array, int arrayIndex)
参数
array
DayType[]
要复制元素到的指定一维数组。
arrayIndex
int
复制开始时的指定数组的零基索引。
GetEnumerator()
返回此集合的枚举数。
public IEnumerator<daytype> GetEnumerator()
返回
IEnumerator<DayType>
此集合的枚举数。
IndexOf(DayType)
确定指定项在此集合中的索引。
public int IndexOf(DayType item)
参数
item
DayType
要在此集合中定位的指定项。
返回
如果找到,则返回指定项的索引;否则返回 -1。
Insert(int, DayType)
在指定索引处插入指定项。
public void Insert(int index, DayType item)
参数
index
int
要插入项的指定零基索引。
item
DayType
要插入到此集合中的指定项。
Remove(DayType)
从此集合中移除特定对象的第一次出现。
public bool Remove(DayType item)
参数
item
DayType
要移除的指定对象。
返回
如果成功从此集合中移除指定对象,则返回 true;否则返回 false。
RemoveAt(int)
移除指定索引处的项。
public void RemoveAt(int index)
参数
index
int
要移除项的指定零基索引。