Either I got confused or I'm overworked or something...

When I get an event from an Annotation object, I can query the Chart object from the Annotation object - but how do I get the matching TChart object???
Best,
Michal Blazejczyk
Code: Select all
IChart iChart = annotation1.Chart.Parent as IChart;
IContainer container = iChart.GetContainer();.
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
![]() ![]() ![]() ![]() ![]() ![]() |
Instructions - How to post in this forum |
Code: Select all
TChart tChart = annotation1.Chart.???;
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
![]() ![]() ![]() ![]() ![]() ![]() |
Instructions - How to post in this forum |
Code: Select all
Annotation anno1 = new Annotation(tChart1.Chart);
anno1.Text = "hello";
IChart ichart = anno1.Chart.Parent;
TChart tchart;
if (ichart is TChart)
{
tchart = ichart as TChart;
tchart.Header.Text = "hello";
}
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
![]() ![]() ![]() ![]() ![]() ![]() |
Instructions - How to post in this forum |