本文介绍了如何动态更改聊天控件系列的颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家早上好

我正在使用聊天控件

我在这里动态创建聊天控件.

Hi good morning all

i am working the chat control

here iam creating chat control dynamically.

for (int j = 0; j < AllSrvc.Count; j++)
                               {
                                   SrvcChart.Series[srvcs].XValueMember = "Name";
                                   SrvcChart.Series[srvcs].YValueMembers = "Count";
                                   for (int i = 0; i < arrayList.Count; i++)
                                   {
                                       SrvcChart.Series[srvcs].Color = arrayList[i];
                                   }

                                   SrvcChart.Height = 600;
                                   SrvcChart.Width = 600;
                               }


在这里,我想更改每个系列的颜色.

如果有帮助,我该怎么办

在此先感谢.........


here i want to change the color every series.

how can i do this if any help appriciate

thanks in advance.........

推荐答案

Chart1.Series("Count").Color = System.Drawing.Color.Coral


并验证此链接:
http://blogs.msdn.com/b/alexgor/archive/2009/10/06/setting-chart-series-colors.aspx [ ^ ]


And also verify this link:
http://blogs.msdn.com/b/alexgor/archive/2009/10/06/setting-chart-series-colors.aspx[^]


这篇关于如何动态更改聊天控件系列的颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-10 07:06