ZedGraph LogoZedGraph Class Library Documentation
Draw Method (g, pane, text, x, y, alignH, alignV, scaleFactor)
NamespacesZedGraphFontSpecDraw(Graphics, PaneBase, String, Single, Single, AlignH, AlignV, Single)
Render the specified text to the specifed Graphics device. The text, border, and fill options will be rendered as required.
Declaration Syntax
C#Visual BasicVisual C++
public void Draw(
	Graphics g,
	PaneBase pane,
	string text,
	float x,
	float y,
	AlignH alignH,
	AlignV alignV,
	float scaleFactor
)
Public Sub Draw ( _
	g As Graphics, _
	pane As PaneBase, _
	text As String, _
	x As Single, _
	y As Single, _
	alignH As AlignH, _
	alignV As AlignV, _
	scaleFactor As Single _
)
public:
void Draw (
	Graphics^ g, 
	PaneBase^ pane, 
	String^ text, 
	float x, 
	float y, 
	AlignH alignH, 
	AlignV alignV, 
	float scaleFactor
)
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 (PaneBase)
A reference to the PaneBase object that is the parent or owner of this object.
text (String)
A string value containing the text to be displayed. This can be multiple lines, separated by newline ('\n') characters
x (Single)
The X location to display the text, in screen coordinates, relative to the horizontal (AlignH) alignment parameter alignH
y (Single)
The Y location to display the text, in screen coordinates, relative to the vertical (AlignV alignment parameter alignV
alignH (AlignH)
A horizontal alignment parameter specified using the AlignH enum type
alignV (AlignV)
A vertical alignment parameter specified using the AlignV enum type
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.

Assembly: ZedGraph (Module: ZedGraph) Version: 5.1.0.621