如何通过Google Apps脚本更改页眉边距? [英] How to change header margins through Google Apps Script?

查看:61
本文介绍了如何通过Google Apps脚本更改页眉边距?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google文档于2018年11月发布了用于控制页眉边距的新选项. https://gsuiteupdates.googleblog.com/2018/10/vertical-ruler-table-header-size-google-docs.html

Google Docs released new options for controlling header margins Nov, 2018. https://gsuiteupdates.googleblog.com/2018/10/vertical-ruler-table-header-size-google-docs.html

如何通过Google Apps脚本更改这些选项?是否可以?我在官方文档 https:上找不到有关页眉边距的任何信息://developers.google.com/apps-script/reference/document/header-section 以及与GAS相关的其他任何帖子.

How I can change these options through Google Apps Script? Is it possible? I can't find any information about header margins on the official documentation https://developers.google.com/apps-script/reference/document/header-section and on any other posts related to GAS.

我将很高兴收到有关此问题的任何信息.谢谢.

I will be glad of any information on this issue. Thanks.

推荐答案

并非所有的Google文档功能都具有Google Apps脚本方法来读取/插入/修改它们,但是确实有一些方法是在正式宣布之前发现的例如Google表格单元格值的部分文本格式,我想是因为自动完成.

Not all the Google Docs features have a Google Apps Script method to cread/insert/modified them but also is true that some methods were spotted before they were officially announced like the partial text formatting for Google Sheets cell values, I think because autocomplete.

使用自动完成

脚本编辑器提供了内容辅助"功能,通常称为自动完成",它可以显示全局对象以及在脚本当前上下文中有效的方法和枚举.要显示自动完成建议,请选择菜单项编辑">内容辅助"或按Ctrl + Space.每当您在返回Apps Script类的全局对象,枚举或方法调用之后键入句点时,自动完成建议也会自动出现.例如:

The script editor provides a "content assist" feature, more commonly called "autocomplete," which reveals the global objects as well as methods and enums that are valid in the script's current context. To show autocomplete suggestions, select the menu item Edit > Content assist or press Ctrl+Space. Autocomplete suggestions also appear automatically whenever you type a period after a global object, enum, or method call that returns an Apps Script class. For example:

  • 如果您在脚本编辑器中单击空白行并激活自动完成功能,则会看到全局对象的列表.
  • 如果键入全局对象的全名或从自动完成中选择一个,则键入.(一个时期),您将看到该类的所有方法和枚举.
  • 如果您键入一些字符并激活自动完成功能,则将看到以这些字符开头的所有有效建议.

关于如何提出功能请求,请结帐 https://developers.google.com/apps-script/support#missing_features

Regarding how to make a feature request please checkout https://developers.google.com/apps-script/support#missing_features

这篇关于如何通过Google Apps脚本更改页眉边距?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆