55 lines
1.1 KiB
C#
55 lines
1.1 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using CPF.Drawing;
|
|
using CPF.ReoGrid.Graphics;
|
|
|
|
namespace CPF.ReoGrid.Chart
|
|
{
|
|
public sealed class DataSerialStyleCollection : IEnumerable<IDataSerialStyle>, IEnumerable
|
|
{
|
|
internal Chart Chart { get; set; }
|
|
|
|
internal DataSerialStyleCollection(Chart chart)
|
|
{
|
|
this.Chart = chart;
|
|
this.defaultDataSerialStyle = new DataSerialStyle(this.Chart)
|
|
{
|
|
FillColor = Color.Transparent,
|
|
LineColor = Color.Black,
|
|
LineWidth = 1f,
|
|
StartCap = LineCapStyles.None,
|
|
EndCap = LineCapStyles.None
|
|
};
|
|
}
|
|
|
|
public IDataSerialStyle this[int index]
|
|
{
|
|
get
|
|
{
|
|
return this.Chart.serialStyles[index];
|
|
}
|
|
}
|
|
|
|
internal IEnumerator<IDataSerialStyle> GetEnum()
|
|
{
|
|
foreach (DataSerialStyle style in this.Chart.serialStyles)
|
|
{
|
|
yield return style;
|
|
}
|
|
}
|
|
|
|
public IEnumerator<IDataSerialStyle> GetEnumerator()
|
|
{
|
|
return this.GetEnum();
|
|
}
|
|
|
|
IEnumerator IEnumerable.GetEnumerator()
|
|
{
|
|
return this.GetEnum();
|
|
}
|
|
|
|
internal DataSerialStyle defaultDataSerialStyle;
|
|
}
|
|
}
|