ITChart.ChartBounds
ITChart

property ChartBounds: ITeeRect;

Type Library
TeeChartx

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:

Private Sub Command1_Click()

With TChart1.Canvas

.Brush.Style = bsClear

.Pen.Color = vbRed

With TChart1.ChartBounds

TChart1.Canvas.Rectangle .Left, .Top, .Right, .Bottom

End With

End With

End Sub