TCustomTeePanel.ChartBounds

TCustomTeePanel.ChartBounds
TCustomTeePanel

property ChartBounds: TRect;

Unit
TeeProcs

Description
Run-time and read only. The ChartBounds property defines the rectangle dimension the last time the Chart was displayed. When drawing to Screen, it equals to the Left, Top, Width and Height properties. When drawing to Printer, it equals to the paper rectangle section where Chart is printed. You should always use the ChartBounds property. Never assume the Chart Left and Top coordinates are zero.

Example

This code draws a frame around a Chart component:

procedure TForm1.Button1Click(Sender: TObject);
begin
With Chart1,Canvas do
begin
Brush.Style:=bsClear;
Pen.Color:=clRed;
With ChartBounds do Rectangle(Left,Top,Right,Bottom);
end;
end;