如何检查图表是否为折线图?

时间:2019-12-17 10:43:00

标签: vba powerpoint powerpoint-vba

我正在尝试检查所选形状是否为图表,随后是否为折线图。

我的尝试

override fun onStart() {
       super.onStart()
       stopOutsideClick()
}

private fun stopOutsideClick() {
       val touchOutsideView = dialog?.window?.decorView?.findViewById<View>(com.google.android.material.R.id.touch_outside)
       touchOutsideView?.setOnClickListener(null)
}

我在做什么错了?

1 个答案:

答案 0 :(得分:1)

只需在.ChartType前面添加.Chart:

If .HasChart Then
    If .Chart.ChartType = xlLine Then