ZedGraph LogoZedGraph Class Library Documentation
DrawLegendKey Method (g, pane, rect, scaleFactor)
NamespacesZedGraphCurveItemDrawLegendKey(Graphics, GraphPane, RectangleF, Single)
Draw a legend key entry for this CurveItem at the specified location. This abstract base method passes through to DrawLegendKey(Graphics, GraphPane, RectangleF, Single) or DrawLegendKey(Graphics, GraphPane, RectangleF, Single) to do the rendering.
Declaration Syntax
C#Visual BasicVisual C++
public abstract void DrawLegendKey(
	Graphics g,
	GraphPane pane,
	RectangleF rect,
	float scaleFactor
)
Public MustOverride Sub DrawLegendKey ( _
	g As Graphics, _
	pane As GraphPane, _
	rect As RectangleF, _
	scaleFactor As Single _
)
public:
virtual void DrawLegendKey (
	Graphics^ g, 
	GraphPane^ pane, 
	RectangleF rect, 
	float scaleFactor
) abstract
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.
rect (RectangleF)
The RectangleF struct that specifies the location for the legend key
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