Show/Hide Toolbars

RiverSoftAVG Products Help

Navigation: Code Documentation > RSCharting > RSChartPanel > Classes > TRSCustomChart > Methods

TRSCustomChart.Draw(TCanvas,TCanvasRect) Method

Scroll Prev Top Next More

Paints the chart to the specified Canvas in the specified location. The Draw method first calls the    OnDrawing event, which signals that it is about to draw and allows users to stop the drawing before it occurs. Then, it calls the protected    InternalDraw method to actually do the drawing. Finally, it calls the OnDraw event to signal the end of drawing of the chart.

Use the Draw method to paint the chart to any canvas and anywhere and with any size on the canvas.

alert_noteNotes to Callers

The Draw Method uses the    HorizontalAxis and    VerticalAxis properties to convert the chart values into pixel coordinates. If you want to use a different axis (but not change the above properties), call the overloaded Draw method.

Namespace: RSChartPanel

Parameters

Canvas

Type: TCanvas

ARect

Type: TCanvasRect

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb