hi all,
my problem is simple :
i have one chart, i want a pie in that chart and when i click on a checkbox i want that the Shadow visibility of the pie to be changed.
So i think i need to declare the pie as a global variable but i can't add it after, it says that it isn't an instance so i need help here.
I am coding in C#.
Thanks in advance
Programmatically change styles attributes (ASP.NET - C#)
-
- Site Admin
- Posts: 1349
- Joined: Thu Jan 01, 1970 12:00 am
- Location: Riudellots de la Selva, Catalonia
- Contact:
Hi --
You could try:i have one chart, i want a pie in that chart and when i click on a checkbox i want that the Shadow visibility of the pie to be changed.
So i think i need to declare the pie as a global variable but i can't add it after, it says that it isn't an instance so i need help here.
Code: Select all
private Steema.TeeChart.Styles.Pie pie1;
private void Form1_Load(object sender, System.EventArgs e) {
pie1 = new Steema.TeeChart.Styles.Pie(tChart1.Chart);
pie1.FillSampleValues();
}
private void checkBox1_Click(object sender, System.EventArgs e) {
pie1.Shadow.Visible = checkBox1.Checked;
}
Thank you!
Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/
Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/