You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
1.7 KiB
C#

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