Page 1 of 1

Check to see if chart has annotation tool...

Posted: Thu Nov 16, 2006 1:27 pm
by 9242408
Is there a way to see if a chart contains an annotation tool that can be accessed?

Thanks,

Tom

Posted: Thu Nov 16, 2006 4:17 pm
by narcis
Hi Tom,

Yes, you can do something like this:

Code: Select all

  for i := 0 to Chart1.Tools.Count - 1 do
    if (Chart1.Tools.Items[i] is TAnnotationTool) then
      With (Chart1.Tools.Items[i] as TAnnotationTool) do
      begin
        //Do something
      end;

Posted: Thu Nov 16, 2006 4:55 pm
by 9242408
Thanks that works great.