MindFusion WinForms Programmer's Guide
Chart.CalculateSize Method
See Also
 





Calculates the size of the chart.

Namespace: MindFusion.Charting
Assembly: MindFusion.Charting

 Syntax

C#  Copy Code

public virtual SizeF CalculateSize ()

Visual Basic  Copy Code

Public Overridable Function CalculateSize () As SizeF

 Return Value

An object of type .NET SizeF structure that represents the chart size.

 Remarks

The method is overridden by all chart classes. It calculates the size, in points, of the chart's bounding rectangle. If it is called before all chart settings are finished, it might return a wrong result.

If you have set the chart to be drawn at a position in the chart's bounding rectangle different that (0, 0), the size of the chart shall remain unchanged, for example, a chart with size 200 x 300 does not turn to 220 x 320 chart if the TopLeftPosition property is set to (20, 20). 

 See Also

Chart Members
Chart Class
MindFusion.Charting Namespace