12月CTP访问Chart对象 [英] December CTP Getting Access to Chart object

查看:81
本文介绍了12月CTP访问Chart对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

升级到12月CTP后,其中一个突破性变化是"ChartSpace"对象上没有"Chart"属性。因此,以下代码不再编译:



 ChartPart.ChartSpace.Chart.Title 

解决方案

我建​​议使用以下代码而不是将Chart作为属性:

 ChartPart.ChartSpace.GetFirstChild< 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:

 

ChartPart.ChartSpace.Chart.Title

解决方案

Instead of having Chart as a property I would recommend using the following code:

 ChartPart.ChartSpace.GetFirstChild<Chart>().Title


这篇关于12月CTP访问Chart对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆