Class ExtendedAttributeDefinitionCollection

Class ExtendedAttributeDefinitionCollection

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

Represents a collection of Aspose.Tasks.ExtendedAttributeDefinition objects.

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

Inheritance

objectExtendedAttributeDefinitionCollection

Implements

IList<extendedattributedefinition>, ICollection<extendedattributedefinition>, IEnumerable<extendedattributedefinition>, 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 elements contained in this collection.

public int Count { get; }

Property Value

int

IsReadOnly

Gets a value indicating whether this collection is read-only.

public bool IsReadOnly { get; }

Property Value

bool

ParentProject

Gets a parent project for the Aspose.Tasks.ExtendedAttributeDefinitionCollection instance. returns a parent project for this collection.

public Project ParentProject { get; }

Property Value

Project

this[int]

Returns or sets the element at the specified index.

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

Property Value

ExtendedAttributeDefinition

Methods

Add(ExtendedAttributeDefinition)

Adds the specified item to this collection.

public void Add(ExtendedAttributeDefinition item)

Parameters

item ExtendedAttributeDefinition

the specified item to add to this collection.

Clear()

Removes all items from this collection.

public void Clear()

Contains(ExtendedAttributeDefinition)

Returns true if the specified item is found in this collection; otherwise, false.

public bool Contains(ExtendedAttributeDefinition item)

Parameters

item ExtendedAttributeDefinition

the specified item to find.

Returns

bool

true if the specified item is found in this collection; otherwise, false.

CopyTo(ExtendedAttributeDefinition[], int)

Copies the elements of this collection to the specified array, starting at the specified array index.

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

Parameters

array ExtendedAttributeDefinition[]

the specified one-dimensional array to copy elements to

arrayIndex int

the zero-based index of the specified array at which copying begins.

GetById(int)

Returns an extended attribute definition by id

public ExtendedAttributeDefinition GetById(int id)

Parameters

id int

specified id

Returns

ExtendedAttributeDefinition

ExtendedAttributeDefinition with specified id.

GetEnumerator()

Returns an enumerator for this collection.

public IEnumerator<extendedattributedefinition> GetEnumerator()

Returns

IEnumerator<ExtendedAttributeDefinition&gt;

an enumerator for this collection.

IndexOf(ExtendedAttributeDefinition)

Determines the index of the specified item in this collection.

public int IndexOf(ExtendedAttributeDefinition item)

Parameters

item ExtendedAttributeDefinition

the specified item to locate in this collection.

Returns

int

the index of the specified item if found; otherwise, -1.

Insert(int, ExtendedAttributeDefinition)

Inserts the specified item at the specified index.

public void Insert(int index, ExtendedAttributeDefinition item)

Parameters

index int

the specified zero-based index at which the item should be inserted.

item ExtendedAttributeDefinition

the specified item to insert to this collection.

Remove(ExtendedAttributeDefinition)

Removes the first occurrence of a specific object from this collection.

public bool Remove(ExtendedAttributeDefinition item)

Parameters

item ExtendedAttributeDefinition

the specified object to remove.

Returns

bool

true if the specified object was successfully removed from this collection; otherwise, false.

RemoveAt(int)

Removes an item at the specified index.

public void RemoveAt(int index)

Parameters

index int

the specified zero-based index to remove an item at.

ToList()

Converts this ExtendedAttributeDefinitionCollection object to a list containing instances of the Aspose.Tasks.ExtendedAttributeDefinition class.

public List<extendedattributedefinition> ToList()

Returns

List<ExtendedAttributeDefinition&gt;

List containing instances of the Aspose.Tasks.ExtendedAttributeDefinition class. </extendedattributedefinition></extendedattributedefinition></extendedattributedefinition>