【实验室笔记】zedgraph控件属性总结
1 //图表的X轴刻度线是否显示
2 this.zedGraphControl1.GraphPane.XAxis.MajorGrid.IsVisible = true;
3 //图表的X轴刻度线的颜色
4 this.zedGraphControl1.GraphPane.XAxis.MajorGrid.Color = Color.Gray;
5 //图表的Y轴刻度线是否显示
6 this.zedGraphControl1.GraphPane.YAxis.MajorGrid.IsVisible = true;
7 //图表的Y轴刻度线的颜色
8 this.zedGraphControl1.GraphPane.YAxis.MajorGrid.Color = Color.Gray;
9 //图表的总标题
10 this.zedGraphControl1.GraphPane.Title.Text = "温度";
11 //图表总标题的颜色
12 this.zedGraphControl1.GraphPane.Title.FontSpec.FontColor = Color.Red;
13 //图表的Y轴标题
14 this.zedGraphControl1.GraphPane.YAxis.Title.Text = "数量";
15 //图标的Y轴颜色
16 this.zedGraphControl1.GraphPane.YAxis.Title.FontSpec.FontColor = Color.Red;
17 //图表的X轴标题
18 this.zedGraphControl1.GraphPane.XAxis.Title.Text = "时间";
19 //图标的X轴颜色
20 this.zedGraphControl1.GraphPane.XAxis.Title.FontSpec.FontColor = Color.Red;
21 //图表X的数据类型
22 this.zedGraphControl1.GraphPane.XAxis.Type = ZedGraph.AxisType.DateAsOrdinal;
23 //图表内边框的颜色
24 this.zedGraphControl1.GraphPane.Chart.Border.Color = Color.Blue;
25 //图表外边框的颜色
26 this.zedGraphControl1.GraphPane.Border = new Border(Color.Blue, 0);
27 //图表X轴刻度字体的颜色
28 this.zedGraphControl1.GraphPane.XAxis.Scale.FontSpec.FontColor = Color.Red;
29 //图表X轴刻度大刻度的颜色
30 this.zedGraphControl1.GraphPane.XAxis.MajorTic.Color = Color.Red;
31 //图表X轴刻度小刻度的颜色
32 this.zedGraphControl1.GraphPane.XAxis.MinorTic.Color = Color.Red;
33 //曲线标签的位置
34 this.zedGraphControl1.GraphPane.Legend.Position = LegendPos.Top;
posted on 2016-11-07 16:16 HelloWorldTotti 阅读(690) 评论(0) 编辑 收藏 举报