What's the equivalent of z-index (arrange order) send to back / bring to front with Slides API?

柔情痞子 提交于 2019-12-08 03:27:56

问题


I am calling the slides API and retrieving multiple shape elements on a slide. These shapes are on top of each other, so only the one is visible. Is there a way from the API of telling which element is "visible" and in front?


回答1:


The list of PageElement objects returned in Page.pageElements should be ordered by z-index, from back to front. I dont see this mentioned in the API docs, but you should be able to verify it yourself by playing with a few shapes in the Slides editor and checking the order they are returned by the API.



来源:https://stackoverflow.com/questions/42123546/whats-the-equivalent-of-z-index-arrange-order-send-to-back-bring-to-front-w

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!