标签: c# vsto powerpoint
我尝试通过创建新形状并删除旧形状来替换另一形状,但是当我尝试复制Z-Order时会抛出异常
newShape.ZOrder((MsoZOrderCmd) oldShape.ZOrderPosition); // when ZOrderPosition = 8 it throw exception
我如何设置ZOrderPosition以更正订单?