我们正尝试通过使用Google Apps脚本设置左/右缩进值来缩进Google幻灯片形状。
function indentShape(){
var slide = SlidesApp.getActivePresentation().getSlides()[0];
var shape = slide.getShapes()[0];
// shape.setIndent(Left,Right)
shape.setIndent(10,20)
}
答案 0 :(得分:2)
setIndent()
是属于XML脚本服务但不属于幻灯片脚本服务的方法。
https://developers.google.com/apps-script/reference/xml-service/format setIndentStart(indent)
,setIndentFirstLine(indent)
和setIndentEnd(indent)
https://developers.google.com/apps-script/reference/slides/paragraph-style#getIndentStart()。shape.getText().getParagraphStyle().setIndentStart(20)