Click or drag to resize

ChartExtensionsSetChartSize Method

Sets the size of the chart while also setting the font size of the axes and legend as well as the border width of each of the series.

Namespace: GSF.Windows.Forms
Assembly: GSF.Windows (in GSF.Windows.dll) Version: 2.4.218-beta
Syntax
public static void SetChartSize(
	this Chart chart,
	int width,
	int height,
	double fontRatio = 37,
	double borderRatio = 480
)
View Source

Parameters

chart  Chart
The chart to be resized.
width  Int32
The new width of the chart.
height  Int32
The new height of the chart.
fontRatio  Double  (Optional)
The ratio of chart height to font size.
borderRatio  Double  (Optional)
The ratio of chart height to border width.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Chart. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also