ZedGraph LogoZedGraph Class Library Documentation
CalcSpace Method (g, pane, scaleFactor, fixedSpace)
NamespacesZedGraphAxisCalcSpace(Graphics, GraphPane, Single, Single%)
Calculate the space required (pixels) for this Axis object.
Declaration Syntax
C#Visual BasicVisual C++
public float CalcSpace(
	Graphics g,
	GraphPane pane,
	float scaleFactor,
	out float fixedSpace
)
Public Function CalcSpace ( _
	g As Graphics, _
	pane As GraphPane, _
	scaleFactor As Single, _
	<OutAttribute> ByRef fixedSpace As Single _
) As Single
public:
float CalcSpace (
	Graphics^ g, 
	GraphPane^ pane, 
	float scaleFactor, 
	[OutAttribute] float% fixedSpace
)
Parameters
g (Graphics)
A graphic device object to be drawn into. This is normally e.Graphics from the PaintEventArgs argument to the Paint() method.
pane (GraphPane)
A reference to the GraphPane object that is the parent or owner of this object.
scaleFactor (Single)
The scaling factor to be used for rendering objects. This is calculated and passed down by the parent GraphPane object using the CalcScaleFactor()() method, and is used to proportionally adjust font sizes, etc. according to the actual size of the graph.
fixedSpace (Single%)
The amount of space (pixels) at the edge of the ChartRect that is always required for this axis, even if the axis is shifted by the Cross value.
Return Value
Returns the space, in pixels, required for this axis (between the rect and ChartRect)
Remarks
This is the total space (vertical space for the X axis, horizontal space for the Y axes) required to contain the axis. If Cross is zero, then this space will be the space required between the Rect and the Rect. This method sets the internal values of _tmpSpace()() for use by the CalcChartRect(Graphics) method.

Assembly: ZedGraph (Module: ZedGraph) Version: 5.1.0.621