How to get height and width (in pixels) of the plot area?

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Wed Jan 14, 2004 12:43 pm

Hi.

Actual series plot area is defined by the chart Chart.ChartRect rectangle. For example, the following code will retreive chart drawing area bounding rectangle and plot area width/height - of course, after the axes are drawn:

Code: Select all

System.Drawing.Rectangle r = tChart1.Chart.ChartRect;
int w = r.Width;
int h = r.Height;
Marjan Slatinek,
http://www.steema.com

Post Reply