Class ExtendedAttributeDefinitionCollection

Class ExtendedAttributeDefinitionCollection

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

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

public class ExtendedAttributeDefinitionCollection : IList<extendedattributedefinition>, ICollection<extendedattributedefinition>, IEnumerable<extendedattributedefinition>, IEnumerable

继承

objectExtendedAttributeDefinitionCollection

实现

IList<extendedattributedefinition>, ICollection<extendedattributedefinition>, IEnumerable<extendedattributedefinition>, 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

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

public bool IsReadOnly { get; }

属性值

bool

ParentProject

获取 Aspose.Tasks.ExtendedAttributeDefinitionCollection 实例的父项目。 返回此集合的父项目。

public Project ParentProject { get; }

属性值

Project

this[int]

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

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

属性值

ExtendedAttributeDefinition

方法

Add(ExtendedAttributeDefinition)

将指定项添加到此集合。

public void Add(ExtendedAttributeDefinition item)

参数

item ExtendedAttributeDefinition

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

Clear()

从此集合中移除所有项。

public void Clear()

Contains(ExtendedAttributeDefinition)

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

public bool Contains(ExtendedAttributeDefinition item)

参数

item ExtendedAttributeDefinition

要查找的指定项。

返回

bool

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

CopyTo(ExtendedAttributeDefinition[], int)

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

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

参数

array ExtendedAttributeDefinition[]

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

arrayIndex int

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

GetById(int)

根据 id 返回扩展属性定义

public ExtendedAttributeDefinition GetById(int id)

参数

id int

指定的 id

返回

ExtendedAttributeDefinition

具有指定 id 的 ExtendedAttributeDefinition。

GetEnumerator()

返回此集合的枚举数。

public IEnumerator<extendedattributedefinition> GetEnumerator()

返回

IEnumerator<ExtendedAttributeDefinition&gt;

此集合的枚举数。

IndexOf(ExtendedAttributeDefinition)

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

public int IndexOf(ExtendedAttributeDefinition item)

参数

item ExtendedAttributeDefinition

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

返回

int

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

Insert(int, ExtendedAttributeDefinition)

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

public void Insert(int index, ExtendedAttributeDefinition item)

参数

index int

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

item ExtendedAttributeDefinition

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

Remove(ExtendedAttributeDefinition)

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

public bool Remove(ExtendedAttributeDefinition item)

参数

item ExtendedAttributeDefinition

要移除的指定对象。

返回

bool

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

RemoveAt(int)

移除指定索引处的项。

public void RemoveAt(int index)

参数

index int

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

ToList()

将此 ExtendedAttributeDefinitionCollection 对象转换为包含 Aspose.Tasks.ExtendedAttributeDefinition 类实例的列表。

public List<extendedattributedefinition> ToList()

返回

List<ExtendedAttributeDefinition&gt;

包含 Aspose.Tasks.ExtendedAttributeDefinition 类实例的列表。

 中文