Class OutlineCodeCollection

Class OutlineCodeCollection

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

表示一组 Aspose.Tasks.OutlineCode 对象。

public class OutlineCodeCollection : IList<outlinecode>, ICollection<outlinecode>, IEnumerable<outlinecode>, IEnumerable

继承

objectOutlineCodeCollection

实现

IList<outlinecode>, ICollection<outlinecode>, IEnumerable<outlinecode>, 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; }

属性值

int

IsReadOnly

获取一个值,指示此集合是否为只读;否则为 false。

public bool IsReadOnly { get; }

属性值

bool

this[int]

返回或设置指定索引处的元素。

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

属性值

OutlineCode

方法

Add(OutlineCode)

将指定的项添加到此集合中。

public void Add(OutlineCode item)

参数

item OutlineCode

要添加到此集合中的指定项。

Clear()

从此集合中移除所有项。

public void Clear()

Contains(OutlineCode)

如果在此集合中找到指定项,则返回 true;否则返回 false。

public bool Contains(OutlineCode item)

参数

item OutlineCode

要查找的指定项。

返回

bool

如果在此集合中找到指定项,则返回 true;否则返回 false。

CopyTo(OutlineCode[], int)

将此集合的元素复制到指定数组,从指定数组索引开始。

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

参数

array OutlineCode[]

要复制元素到的指定一维数组。

arrayIndex int

复制开始时指定数组的零基索引。

GetEnumerator()

返回此集合的枚举数。

public IEnumerator<outlinecode> GetEnumerator()

返回

IEnumerator<OutlineCode&gt;

此集合的枚举数。

IndexOf(OutlineCode)

确定指定项在此集合中的索引。

public int IndexOf(OutlineCode item)

参数

item OutlineCode

要在此集合中定位的指定项。

返回

int

如果找到,返回指定项的索引;否则返回 -1。

Insert(int, OutlineCode)

在指定索引处插入指定项。

public void Insert(int index, OutlineCode item)

参数

index int

要插入项的指定零基索引。

item OutlineCode

要插入到此集合中的指定项。

Remove(OutlineCode)

从此集合中移除特定对象的首次出现。

public bool Remove(OutlineCode item)

参数

item OutlineCode

要移除的指定对象。

返回

bool

如果成功从此集合中移除指定对象,则返回 true;否则返回 false。

RemoveAt(int)

移除指定索引处的项。

public void RemoveAt(int index)

参数

index int

要移除项的指定零基索引。

 中文