namespace com.azkoss.excellite
{
using System;
using System.Collections;
using System.ComponentModel;
///
///Base class for row, column and cell collections.
///
public abstract class ExcelRowColumnCellCollectionBase : IEnumerable
{
// Methods
///
///Internal.
///
///
[EditorBrowsable(EditorBrowsableState.Never)]
protected ExcelRowColumnCellCollectionBase(ExcelWorksheet parent)
{
this.parent = parent;
this.items = new ArrayList();
}
///
///Returns an enumerator for the
///ExcelRowColumnCellCollectionBase.
///
public IEnumerator GetEnumerator()
{
return this.items.GetEnumerator();
}
// Properties
///
///Gets the number of currently allocated elements (dynamically changes when worksheet is modified).
///
public int Count
{
get
{
return this.items.Count;
}
}
///
///Internal.
///
[EditorBrowsable(EditorBrowsableState.Never)]
protected ArrayList Items
{
get
{
return this.items;
}
}
internal ExcelWorksheet Parent
{
get
{
return this.parent;
}
}
// Fields
private ArrayList items;
private ExcelWorksheet parent;
}
}