Page 1 of 1
Border editor.
Posted: Thu Sep 09, 2010 5:17 pm
by 9530487
I have a line series, when I view the editor, and click series, there is a button for "Border".
How do I access those settings for the border via code? I cannot figure it out. I assumed it would be something like
series.GetAsLine().GetBorderPen()
but I just cannot find out how to access the border settings.
Tony.
Re: Border editor.
Posted: Fri Sep 10, 2010 3:18 pm
by yeray
Hi Tony,
It's something like following:
Code: Select all
TChart1.Series(0).asLine.LinePen.Color = vbGreen
Re: Border editor.
Posted: Fri Sep 10, 2010 3:23 pm
by 9530487
No, that's the line colour itself. I mean the border properties of the line (see attached image).
Also, below the border popup in the attachment there is a setting "Height 3d". I cannot find how to set that in code either.
Re: Border editor.
Posted: Fri Sep 10, 2010 4:24 pm
by yeray
Hi Tony,
What TeeChart version are you using? Here is my result in VB6 with TeeChart AX 8.0.0.8 and also with the
TeeChart AX v2010 beta.
Code: Select all
Private Sub Form_Load()
TeeCommander1.ChartLink = TChart1.ChartLink
TChart1.AddSeries scLine
TChart1.Series(0).FillSampleValues
TChart1.Series(0).Color = RGB(255, 128, 0)
TChart1.Series(0).asLine.LinePen.Color = vbGrayText
TChart1.Series(0).asLine.LinePen.Width = 3
TChart1.Series(0).asLine.LineHeight = 20
End Sub

- test.png (25.33 KiB) Viewed 6318 times