Class ExtendedAttributeCollection
Namespace: Aspose.Tasks
Assembly: Aspose.Tasks.dll (25.2.0)
表示 Aspose.Tasks.ExtendedAttribute 对象的集合。
public class ExtendedAttributeCollection : IList<extendedattribute>, ICollection<extendedattribute>, IEnumerable<extendedattribute>, IEnumerable
继承
object ← ExtendedAttributeCollection
实现
IList<extendedattribute>, ICollection<extendedattribute>, IEnumerable<extendedattribute>, 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 ExtendedAttribute this[int index] { get; set; }
属性值
方法
Add(ExtendedAttribute)
将指定项添加到此集合。
public void Add(ExtendedAttribute item)
参数
item
ExtendedAttribute
要添加到此集合的指定项。
Clear()
从此集合中移除所有项。
public void Clear()
Contains(ExtendedAttribute)
如果在此集合中找到指定项,则返回 true;否则返回 false。
public bool Contains(ExtendedAttribute item)
参数
item
ExtendedAttribute
要查找的指定项。
返回
如果在此集合中找到指定项,则为 true;否则为 false。
CopyTo(ExtendedAttribute[], int)
将此集合的元素复制到指定数组,从指定数组索引开始。
public void CopyTo(ExtendedAttribute[] array, int arrayIndex)
参数
array
ExtendedAttribute[]
要复制元素的指定一维数组
arrayIndex
int
复制开始时指定数组的零基索引。
GetEnumerator()
返回此集合的枚举数。
public IEnumerator<extendedattribute> GetEnumerator()
返回
IEnumerator<ExtendedAttribute>
此集合的枚举数。
IndexOf(ExtendedAttribute)
确定指定项在此集合中的索引。
public int IndexOf(ExtendedAttribute item)
参数
item
ExtendedAttribute
要在此集合中定位的指定项。
返回
如果找到,返回指定项的索引;否则返回 -1。
Insert(int, ExtendedAttribute)
在指定索引处插入指定项。
public void Insert(int index, ExtendedAttribute item)
参数
index
int
要插入项的指定零基索引。
item
ExtendedAttribute
要插入到此集合的指定项。
Remove(ExtendedAttribute)
从此集合中移除特定对象的第一次出现。
public bool Remove(ExtendedAttribute item)
参数
item
ExtendedAttribute
要移除的指定对象。
返回
如果成功从此集合中移除指定对象,则为 true;否则为 false。
RemoveAt(int)
移除指定索引处的项。
public void RemoveAt(int index)
参数
index
int
要移除项的指定零基索引。