Hide Comments
Hide Comments

TRSCustomChartPanel.Draw(TCanvas,TCanvasRect) Method

Comments (0)

Paints the chart panel, including its    Background,    Header,    Footer,    Charts, etc to the specified canvas and in the specified rectangle. Use the Draw method to paint the chart panel on any canvas you want.

A chart panel is composed of, and draws in the following order, these elements: A chart panel is composed of, and draws in the following order, these elements:

Panel Itself
Background (the surface or layer behind all chart panel elements)
Gradient (Drawn behind the chart panel elements and obscures the Background)
Header (the area above where the charts are drawn)
Footer (the area below where the charts are drawn)
Legend (the text box that labels the charts or their values)
Foreground (the surface or layer in front of all chart panel elements)

Every element is optional and is controlled by their Visible property.

In addition, the    ChartShadow defines the attributes of the shadow that all chart elements can optionally cast.
 

Namespace: RSChartPanel

expandingSyntax

Delphi

public 
  procedure Draw(const Canvas: TCanvas; ARect: TCanvasRect); overload; virtual; 
 

Parameters

Canvas

Type: TCanvas

ARect

Type: TCanvasRect

expandingExamples

The following code draws the chart panel in a paintbox's canvas:

Delphi

procedure TForm1.PaintBox1Paint(Sender: TObject);
 begin
      RSChartPanel1.Draw(PaintBox1.Canvas, PaintBox1.Canvas.ClipRect);
 end;

expandingSee Also

Comments (0)

RiverSoftAVG Charting Component Suite (RCCS) © 2005-2015, Thomas G. Grubb