ICalendarSeries.RectCell
ICalendarSeries
function RectCell(Column, Row: Integer): TeeRect;
Type Library
TeeChartx
Description
The RectCell method returns the bounderies of a 2D-Rectangle which is defined as the outline of the specified Calender series cell.
Example [Visual Basic]:
Dim aa As TeeChart.TeeRect
Dim aaSet As Boolean
Private Sub Command2_Click()
aa = TChart1.Series(0).asCalendar.RectCell(2, 5)
aaSet = True
TChart1.Repaint
End Sub
Private Sub Form_Load()
TChart1.AddSeries scCalendar
aaSet = False
End Sub
Private Sub TChart1_OnAfterDraw()
If aaSet = True Then
With TChart1
.Canvas.Brush.Style = bsClear
.Canvas.Pen.Color = vbYellow
.Canvas.Rectangle aa.Left, aa.Top, aa.Right, aa.Bottom
End With
End If
End Sub