ZedGraph LogoZedGraph Class Library Documentation
DrawSingleBar Method (g, pane, curve, baseAxis, valueAxis, pos, index, barWidth, scaleFactor)
NamespacesZedGraphBarDrawSingleBar(Graphics, GraphPane, CurveItem, Axis, Axis, Int32, Int32, Single, Single)
Draw the specified single bar (an individual "point") of this series to the specified Graphics device. This method is not as efficient as DrawBars(Graphics, GraphPane, CurveItem, Axis, Axis, Single, Int32, Single), which draws the bars for all points. It is intended to be used only for SortedOverlay, which requires special handling of each bar.
Declaration Syntax
C#Visual BasicVisual C++
public void DrawSingleBar(
	Graphics g,
	GraphPane pane,
	CurveItem curve,
	Axis baseAxis,
	Axis valueAxis,
	int pos,
	int index,
	float barWidth,
	float scaleFactor
)
Public Sub DrawSingleBar ( _
	g As Graphics, _
	pane As GraphPane, _
	curve As CurveItem, _
	baseAxis As Axis, _
	valueAxis As Axis, _
	pos As Integer, _
	index As Integer, _
	barWidth As Single, _
	scaleFactor As Single _
)
public:
void DrawSingleBar (
	Graphics^ g, 
	GraphPane^ pane, 
	CurveItem^ curve, 
	Axis^ baseAxis, 
	Axis^ valueAxis, 
	int pos, 
	int index, 
	float barWidth, 
	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 (GraphPane)
A reference to the GraphPane object that is the parent or owner of this object.
curve (CurveItem)
A CurveItem object representing the Bar's to be drawn.
baseAxis (Axis)
The Axis class instance that defines the base (independent) axis for the Bar
valueAxis (Axis)
The Axis class instance that defines the value (dependent) axis for the Bar
pos (Int32)
The ordinal position of the this bar series (0=first bar, 1=second bar, etc.) in the cluster of bars.
index (Int32)
The zero-based index number for the single bar to be drawn.
barWidth (Single)
The width of each bar, in pixels.
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