|
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.FormsAssembly: GSF.Windows (in GSF.Windows.dll) Version: 2.4.207-beta
Syntax public static void SetChartSize(
this Chart chart,
int width,
int height,
double fontRatio = 37,
double borderRatio = 480
)
[<ExtensionAttribute>]
static member SetChartSize :
chart : Chart *
width : int *
height : int *
?fontRatio : float *
?borderRatio : float
(* Defaults:
let _fontRatio = defaultArg fontRatio 37
let _borderRatio = defaultArg borderRatio 480
*)
-> unit
GSF.Windows.Forms.ChartExtensions.SetChartSize = function(chart, width, height, fontRatio, borderRatio);
View SourceParameters
- 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