Defines the strategy used to fit the chart into the chart area (margins).
The following code modifies the chart fit mode and chart margins:
Dim chart As Chart = CType(nChartControl1.Charts.GetAt(0), Chart)
chart.MarginMode = MarginMode.Stretch
chart.Margins = New RectangleF(10, 10, 80, 80)
chart.View.SetPredefinedProjection(PredefinedProjection.Orthogonal)
Chart chart = (Chart)nChartControl1.Charts.GetAt(0);
chart.MarginMode = MarginMode.Stretch;
chart.Margins = new RectangleF(10, 10, 80, 80);
chart.View.SetPredefinedProjection(PredefinedProjection.Orthogonal);
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2