以编程方式更改获胜表格的颜色 [英] Changing a win forms chart color programmatically

查看:64
本文介绍了以编程方式更改获胜表格的颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



如何更改获胜表格的系列
条形图使用编码?

谢谢!

Hi,

How can I change the series of a win form
bar chart using coding?

Thanks!

推荐答案

有一种通用的方法.这个问题意味着您知道如何以非编程方式"进行操作.事实是:没有什么事情可以不是动态地",不是以编程方式",不是在运行时"完成的.

因此,发生的事情是:您可能知道如何使用Designer进行操作.但是,Designer除了为您编写一些代码外不会做任何事情.在解决方案资源管理器中查看表单的节点.子节点中有一个自动生成的C#文件.这是设计器生成的,将在运行时从表单的构造函数中调用.

只需打开此文件,然后了解如何修改所需的属性以及其他所有内容即可.

—SA
There is one universal way. The question implies that you know how to do "non-programmatically". The thing is: there is nothing which is done "not dynamically", "not programmatically", "not during run time".

So, what happens is: you probably know how to do it using the Designer. But the Designer does not do anything except writing some code for your. Look at you form''s node in the Solution Explorer. There is a auto-generated C# file in a child node. This is what was generated by the Designer and what will be called from your form''s constructor during run time.

Just open this file and learn how to modify the property you need, as well as everything else.

—SA


Ben,

问题尚不清楚,但是我可以与您分享有关c#win表格中图表的完整参考资料

http://helpcentral.componentone.com/nethelp/c1chart2d/default.htm?turl= chartforwinformssamples.htm [^ ]

我认为此链接对您有帮助

谢谢
Ben,

The question is not clear, But I can share you the complete reference about charts in c# win forms

http://helpcentral.componentone.com/nethelp/c1chart2d/default.htm?turl=chartforwinformssamples.htm[^]

I think this link helpful to you

Thanks


这篇关于以编程方式更改获胜表格的颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆