1
我不能找到一種方法,水平對齊表格中使用谷歌Apps腳本在谷歌文檔。我已經徹底檢查了所有的文檔,並且還盲目嘗試了幾種方法。如何設置水平定在桌子上應用腳本
嘗試一:
var cells = [
['Company', rowData[3]],
['Title', rowData[4]],
];
var tableStyle = {};
tableStyle[DocumentApp.Attribute.HORIZONTAL_ALIGNMENT] = DocumentApp.HorizontalAlignment.RIGHT;
var mentorTable = body.appendTable(cells);
var myTable = body.appendTable(cells);
myTable.setAttributes(tableStyle);
嘗試二:
var cells = [
['Company', rowData[3]],
['Title', rowData[4]],
];
var mentorTable = body.appendTable(cells);
myTable.setAlignment(DocumentApp.HorizontalAlignment.RIGHT);
的谷歌文檔的用戶界面支持更改從 「表格屬性」 菜單選項,這個屬性。
如何對齊使用谷歌Apps腳本在表有什麼想法?
爲表通過Google Apps腳本中心功能請求添加到谷歌跟蹤器,可以在「星」吧:https://issuetracker.google.com/issues/36765133 – Kos