ChartDirector Support
Forum Home
Search
Message List
Post Message
[May-13-2021 01:34]
Obtain a count of number of layers in a chart
(Chuck)
[May-13-2021 12:57]
Re: Obtain a count of number of layers in a chart
(Peter Kwan)
[May-13-2021 22:05]
Re: Obtain a count of number of layers in a chart
(Chuck)
Obtain a count of number of layers in a chart
Posted by Chuck on May-13-2021 01:34
|
Reply
|
Monitor
Hi Peter,
Can you provide a VB.NET example of getting a count of the number of layers on a chart?
Thank you,
Chuck
Re: Obtain a count of number of layers in a chart
Posted by Peter Kwan on May-13-2021 12:57
|
Reply
|
Monitor
Hi Chuck,
Yes. It is:
' c = BaseChart object
Dim layerCount As Integer = c.getLayerCount()
See:
https://www.advsofteng.com/doc/cdnet.htm#XYChart.getLayerCount.htm
Regards
Peter Kwan
Re: Obtain a count of number of layers in a chart
Posted by Chuck on May-13-2021 22:05
|
Reply
|
Monitor
Thank you Peter.
Chuck