Programmatically change styles attributes (ASP.NET - C#)

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
David
Newbie
Newbie
Posts: 3
Joined: Wed Apr 07, 2004 4:00 am

Programmatically change styles attributes (ASP.NET - C#)

Post by David » Fri Apr 09, 2004 1:35 pm

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

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Post by Christopher » Wed Apr 14, 2004 2:00 pm

Hi --
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.
You could try:

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/

Post Reply