47 lines
739 B
C#
47 lines
739 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
|
|
namespace CPF.ReoGrid.Chart
|
|
{
|
|
internal struct PlotPointRow : IEnumerable<PlotPointColumn>, IEnumerable
|
|
{
|
|
public PlotPointColumn this[int index]
|
|
{
|
|
get
|
|
{
|
|
return this.columns[index];
|
|
}
|
|
set
|
|
{
|
|
this.columns[index] = value;
|
|
}
|
|
}
|
|
|
|
public int Length
|
|
{
|
|
get
|
|
{
|
|
return this.columns.Length;
|
|
}
|
|
}
|
|
|
|
public IEnumerator<PlotPointColumn> GetEnumerator()
|
|
{
|
|
foreach (PlotPointColumn col in this.columns)
|
|
{
|
|
yield return col;
|
|
}
|
|
PlotPointColumn[] array = null;
|
|
yield break;
|
|
}
|
|
|
|
IEnumerator IEnumerable.GetEnumerator()
|
|
{
|
|
return this.columns.GetEnumerator();
|
|
}
|
|
|
|
public PlotPointColumn[] columns;
|
|
}
|
|
}
|