ZedGraph LogoZedGraph Class Library Documentation
Draw Method (g, pane, rect, scaleFactor, fullFrame, isSelected, dataValue)
NamespacesZedGraphBarDraw(Graphics, GraphPane, RectangleF, Single, Boolean, Boolean, PointPair)
Draw the Bar to the specified Graphics device at the specified location. This routine draws a single bar.
Declaration Syntax
C#Visual BasicVisual C++
public void Draw(
	Graphics g,
	GraphPane pane,
	RectangleF rect,
	float scaleFactor,
	bool fullFrame,
	bool isSelected,
	PointPair dataValue
)
Public Sub Draw ( _
	g As Graphics, _
	pane As GraphPane, _
	rect As RectangleF, _
	scaleFactor As Single, _
	fullFrame As Boolean, _
	isSelected As Boolean, _
	dataValue As PointPair _
)
public:
void Draw (
	Graphics^ g, 
	GraphPane^ pane, 
	RectangleF rect, 
	float scaleFactor, 
	bool fullFrame, 
	bool isSelected, 
	PointPair^ dataValue
)
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 rectangle (pixels) to contain the bar
scaleFactor (Single)
The scaling factor for the features of the graph based on the BaseDimension. This scaling factor is calculated by the CalcScaleFactor()() method. The scale factor represents a linear multiple to be applied to font sizes, symbol sizes, etc.
fullFrame (Boolean)
true to draw the bottom portion of the border around the bar (this is for legend entries)
isSelected (Boolean)
Indicates that the Bar should be drawn with attributes from the Selection class.
dataValue (PointPair)
The data value to be used for a value-based color gradient. This is only applicable for GradientByX, GradientByY or GradientByZ.

Assembly: ZedGraph (Module: ZedGraph) Version: 5.1.0.621