• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class AbstractCollection<T>

Provides a mutable, zero-based, ordered collection of document objects.

Inheritance
object
AbstractCollection<T>
FramesetCollection
RowCollection
Implements
ICollection<T>
IEnumerable<T>
IEnumerable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DRIT.Document
Assembly: DRIT.Document.dll
Syntax
public abstract class AbstractCollection<T> : ICollection<T>, IEnumerable<T>, IEnumerable
Type Parameters
Name Description
T

The type of object stored in the collection.

Properties

Count

Gets the number of items in the collection.

Declaration
public int Count { get; }
Property Value
Type Description
int

IsReadOnly

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

Declaration
public bool IsReadOnly { get; }
Property Value
Type Description
bool

Always false for this mutable collection.

this[int]

Gets the item at the specified zero-based index.

Declaration
public T this[int index] { get; }
Parameters
Type Name Description
int index

The zero-based index of the item.

Property Value
Type Description
T

The item at index.

Methods

Add(T)

Adds an item to the end of the collection.

Declaration
public void Add(T item)
Parameters
Type Name Description
T item

The item to add.

Clear()

Removes all items from the collection.

Declaration
public void Clear()

Contains(T)

Determines whether the collection contains the specified item.

Declaration
public bool Contains(T item)
Parameters
Type Name Description
T item

The item to locate.

Returns
Type Description
bool

true when the item is present; otherwise, false.

CopyTo(T[], int)

Copies the collection's items to an array beginning at the specified index.

Declaration
public void CopyTo(T[] array, int arrayIndex)
Parameters
Type Name Description
T[] array

The destination array.

int arrayIndex

The zero-based destination index.

GetEnumerator()

Returns an enumerator over the items in collection order.

Declaration
public IEnumerator<T> GetEnumerator()
Returns
Type Description
IEnumerator<T>

An enumerator over the live collection.

IndexOf(T)

Returns the zero-based index of an item, or -1 when it is not present.

Declaration
public int IndexOf(T item)
Parameters
Type Name Description
T item

The item to locate.

Returns
Type Description
int

The first matching index, or -1.

Remove(T)

Removes the first occurrence of an item from the collection.

Declaration
public bool Remove(T item)
Parameters
Type Name Description
T item

The item to remove.

Returns
Type Description
bool

true when an item was removed; otherwise, false.

RemoveAt(int)

Removes the item at the specified zero-based index.

Declaration
public void RemoveAt(int index)
Parameters
Type Name Description
int index

The zero-based index of the item to remove.

Implements

ICollection<T>
IEnumerable<T>
IEnumerable
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX