![]() |
1
4
要设置折线图的颜色:
如果希望个别连接线具有不同的颜色,则需要按如下方式处理ChartSeries.PrepareStyle事件:
void系列_PrepareStyle(对象发送方,ChartPrepareStyleinForEventArgs参数) { //使用准备样式事件为数据点指定不同的颜色 ChartSeries Series=作为ChartSeries的发送方; 如果(系列)!=空) { if(this.chartcontrol1.series[0].type.toString()==“行”) { if(args.index==0) args.style.interior=新建syncfusion.drawing.brushinfo(color.red); else if(args.index==1) args.style.interior=新建syncfusion.drawing.brushinfo(color.green); else if(args.index==2) args.style.interior=新建syncfusion.drawing.brushinfo(color.blue); else if(args.index==3) args.style.interior=new-syncfusion.drawing.brushinfo(color.yellow); else if(args.index==4) 当做, 杰伊 |
![]() |
Teysz · 如何将byte[]转换为PdfBitmap?[副本] 9 年前 |