Hi Rich,
The BoundsMode property specifies how the chart fits inside the bounds determined by the layout - in case of Fit the chart maintains aspect ratio and in case of Stretch it stretches to fill the available size without maintiaining aspect. The following code shows how to export a chart control where the chart occupies 400x300 pixels at 96 dpi:
using (NChartControl chartControl = new NChartControl())
{
NChart chart = chartControl.Charts[0];
chart.DockMode = PanelDockMode.Fill;
chart.BoundsMode = BoundsMode.Stretch;
NBarSeries bar = new NBarSeries();
bar.Values.Add(10);
bar.Values.Add(20);
bar.Values.Add(20);
chart.Series.Add(bar);
chartControl.ImageExporter.SaveToFile("c:\\temp\\chartImage.png", new NSize(400, 300), new NResolution(96, 96), new NPngImageFormat());
}
You can also take a look at the examples shipped with the control showing how BoundsMode works:
All Examples \ Layout \ Bounds Mode - Fit
All Examples \ Layout \ Bounds Mode - Stretch
Hope this helps - let us know if you meet any problems.
Best Regards,
Nevron Support Team