Line series legend symbol problem

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Uli
Newbie
Newbie
Posts: 80
Joined: Thu Apr 22, 2010 12:00 am

Re: Line series legend symbol problem

Post by Uli » Mon May 31, 2010 12:35 pm

Hallo Sandra,

it was a good hint with the Unicode chars.

Thanks,

Uli

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Line series legend symbol problem

Post by Sandra » Tue Jun 15, 2010 9:31 am

Hello Uli,

I inform you that this bug(TF02014913) is not a bug, because TeeChart does not serialize or deserialize the Control.Tag property as it is not a TeeChart property.
On the other hand, you can serialize and deserialize the TeeBase.Tag property without a problem, please check next code for reproduce it:

Code: Select all

 private void InitializeChart()
           {
               Steema.TeeChart.Styles.Bar bar = new Steema.TeeChart.Styles.Bar(tChart1.Chart);
               bar.FillSampleValues();
           }

           private void button1_Click(object sender, EventArgs e)
           {
               tChart1.Chart.Tag = "Test";
               tChart1.Legend.Tag = "Test2";
               tChart1.Export.Template.IncludeData = true;
               tChart1.Export.Template.Save(@"test.ten");//saveFileDialog1.FileName);
               tChart1.Chart.Tag = "";
               tChart1.Legend.Tag = "";
           }

           private void button2_Click(object sender, EventArgs e)
           {
               tChart2.Import.Template.Load(@"test.ten");
               MessageBox.Show(tChart2.Chart.Tag.ToString());
               MessageBox.Show(tChart2.Legend.Tag.ToString());
           }
Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Uli
Newbie
Newbie
Posts: 80
Joined: Thu Apr 22, 2010 12:00 am

Re: Line series legend symbol problem

Post by Uli » Fri Jun 18, 2010 6:58 am

Hi Sandra,

OK, this code works. But TChart.Tag is displayed in the property editor and I cannot understand that it will not be serialized. That is confusing.

Best regards

Uli

Post Reply