Draw the Bar to the specified Graphics device
at the specified location. This routine draws a single bar.
| C# | Visual Basic | Visual C++ |
public void Draw( Graphics g, GraphPane pane, RectangleF rect, float scaleFactor, bool fullFrame, bool isSelected, PointPair dataValue )
- 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.
