表格中的列。列由表单元格列表组成。列由列编号标识。
方法
方法 | 返回类型 | 简介 |
---|---|---|
get | Table | 返回指定索引处的单元格。 |
get | Integer | 返回列的从 0 开始的索引。 |
get | Integer | 返回此列中的单元格数。 |
get | Table | 返回包含当前列的表。 |
get | Number | 返回列的宽度(以点为单位)。 |
remove() | void | 移除表格列。 |
详细文档
get Cell(cellIndex)
返回指定索引处的单元格。
参数
名称 | 类型 | 说明 |
---|---|---|
cell | Integer | 要检索的单元格的索引(从 0 开始)。 |
返回
授权
使用此方法的脚本需要获得以下一个或多个范围的授权:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
get Index()
返回列的从 0 开始的索引。
返回
Integer
授权
使用此方法的脚本需要获得以下一个或多个范围的授权:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
get Num Cells()
返回此列中的单元格数。
返回
Integer
授权
使用此方法的脚本需要获得以下一个或多个范围的授权:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
get Parent Table()
get Width()
返回列的宽度(以点为单位)。
返回
Number
授权
使用此方法的脚本需要获得以下一个或多个范围的授权:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
remove()
移除表格列。
如果该列中的所有单元格都与其他列合并,系统会移除这些单元格所跨越的公共列。
如果移除后表中没有剩余列,则系统会移除整个表。
授权
使用此方法的脚本需要获得以下一个或多个范围的授权:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations