我正在尝试检查所选形状是否为图表,随后是否为折线图。
我的尝试
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)
}
我在做什么错了?
答案 0 :(得分:1)
只需在.ChartType前面添加.Chart:
If .HasChart Then
If .Chart.ChartType = xlLine Then