ZedGraph LogoZedGraph Class Library Documentation
Draw Method (g, pane, scaleFactor, shiftPos)
NamespacesZedGraphAxisDraw(Graphics, GraphPane, Single, Single)
Do all rendering associated with this Axis to the specified Graphics device.
Declaration Syntax
C#Visual BasicVisual C++
public void Draw(
	Graphics g,
	GraphPane pane,
	float scaleFactor,
	float shiftPos
)
Public Sub Draw ( _
	g As Graphics, _
	pane As GraphPane, _
	scaleFactor As Single, _
	shiftPos As Single _
)
public:
void Draw (
	Graphics^ g, 
	GraphPane^ pane, 
	float scaleFactor, 
	float shiftPos
)
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.
shiftPos (Single)
The number of pixels to shift to account for non-primary axis position (e.g., the second, third, fourth, etc. YAxis or Y2Axis.
Remarks
This method is normally only called by the Draw method of the parent GraphPane object.

Assembly: ZedGraph (Module: ZedGraph) Version: 5.1.0.621