Reputation: 67
We are trying to Indent the Google Slide Shape, by setting the Left/Right indentation values using Google Apps Script.
function indentShape(){
var slide = SlidesApp.getActivePresentation().getSlides()[0];
var shape = slide.getShapes()[0];
// shape.setIndent(Left,Right)
shape.setIndent(10,20)
}
Upvotes: 0
Views: 271
Reputation: 26796
setIndent()
is a method belonging to the XML script service but not Slides Script Service.
https://developers.google.com/apps-script/reference/xml-service/formatsetIndentStart(indent)
, setIndentFirstLine(indent)
and setIndentEnd(indent)
https://developers.google.com/apps-script/reference/slides/paragraph-style#getIndentStart().shape.getText().getParagraphStyle().setIndentStart(20)
Upvotes: 2