How do I reset the zoom feature programatically?

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
VH1
Advanced
Posts: 105
Joined: Thu May 13, 2004 4:00 am
Location: UK

How do I reset the zoom feature programatically?

Post by VH1 » Tue Jan 24, 2006 10:17 am

This is not the zoom Aspect.Zoom property

After producing a chart and using the Normal button on the Commander bar I have zoomed in using the mouse and the zoom rectangle. (Slecting the chart and moving the mouse from left to right).

I realise that I can reset the amount of zoom by selecting the chart and moving the mouse from right to left but how do I do that programatically?

Many thanks,

Vaughan

VH1
Advanced
Posts: 105
Joined: Thu May 13, 2004 4:00 am
Location: UK

Post by VH1 » Tue Jan 24, 2006 10:30 am

ok, I found the answer...

set the following...

tChart1.Axes.Left.Automatic=true;
tChart1.Axes.Bottom.Automatic=true;

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Jan 24, 2006 10:33 am

Hi Vaughan,

Yes, this is the property you mentioned, setting it to 100 percent works:

Code: Select all

			tChart1.Aspect.Zoom = 100;
Best Regards,
Narcís Calvet / 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

VH1
Advanced
Posts: 105
Joined: Thu May 13, 2004 4:00 am
Location: UK

Post by VH1 » Tue Jan 24, 2006 10:46 am

Sorry, but as I mentioned, this was not the Aspect.Zoom property.

The fix that I found was the correct one.

Thanks anyway.

Regards,

Vaughan

Post Reply