public ChartGrid(ChartGridType type) { this.Type = type; this.ValueTypes.Add("thickness", typeof(int)); this.ValueTypes.Add("color", typeof(string)); this.ValueTypes.Add("alpha", typeof(int)); this.ValueTypes.Add("type", typeof(ChartGridLineType)); }
private ChartGrid SetChartGrid(ChartGridType chartGridType) { ChartGrid cg = new ChartGrid(chartGridType); cg.Color = "000000"; if (chartGridType == ChartGridType.Horizontal) { cg.Alpha = 5; cg.Thickness = 10; } else { cg.Alpha = 20; cg.Thickness = 1; } return cg; }
private ChartGrid SetChartGrid(ChartGridType chartGridType) { ChartGrid cg = new ChartGrid(chartGridType); cg.Alpha = 100; cg.Color = "ee6666"; cg.Thickness = 1; if (chartGridType == ChartGridType.Horizontal) { cg.Alpha = 20; cg.Color = "000000"; cg.GridLineType = ChartGridLineType.dashed; } return cg; }
private ChartGrid SetChartGrid(ChartGridType chartGridType) { ChartGrid cg = new ChartGrid(chartGridType); cg.Alpha = 10; cg.Color = "000000"; switch (chartGridType) { case ChartGridType.Horizontal: cg.Thickness = 5; break; case ChartGridType.Vertical: cg.Thickness = 1; break; } return cg; }