12月CTP访问Chart对象 [英] December CTP Getting Access to Chart object
问题描述
升级到12月CTP后,其中一个突破性变化是"ChartSpace"对象上没有"Chart"属性。因此,以下代码不再编译: After upgrading to the December CTP, one of the breaking changes is that there is no more 'Chart' property on the 'ChartSpace' object. So, code as follows no longer compiles: 这篇关于12月CTP访问Chart对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
ChartPart.ChartSpace.Chart.Title
我建议使用以下代码而不是将Chart作为属性:
ChartPart.ChartSpace.GetFirstChild< Chart> ;()标题
ChartPart.ChartSpace.Chart.Title
Instead of having Chart as a property I would recommend using the following code:
ChartPart.ChartSpace.GetFirstChild<Chart>().Title