Class TableColumn

資料表

表格中的欄。資料欄是由資料表儲存格清單組成。資料欄由資料欄索引識別。

方法

方法傳回類型簡短說明
getCell(cellIndex)TableCell傳回指定索引的儲存格。
getIndex()Integer傳回欄的索引 (從 0 開始)。
getNumCells()Integer傳回這個資料欄中的儲存格數量。
getParentTable()Table傳回包含目前資料欄的資料表。
getWidth()Number以點為單位傳回資料欄寬度。
remove()void移除表格欄。

內容詳盡的說明文件

getCell(cellIndex)

傳回指定索引的儲存格。

參數

名稱類型說明
cellIndexInteger要擷取的儲存格索引,從 0 開始。

回攻員

TableCell:指定索引處的儲存格。

授權

使用這個方法的指令碼需要透過下列一或多個範圍授權:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

getIndex()

傳回欄的索引 (從 0 開始)。

回攻員

Integer

授權

使用這個方法的指令碼需要透過下列一或多個範圍授權:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

getNumCells()

傳回這個資料欄中的儲存格數量。

回攻員

Integer

授權

使用這個方法的指令碼需要透過下列一或多個範圍授權:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

getParentTable()

傳回包含目前資料欄的資料表。

回攻員

Table

授權

使用這個方法的指令碼需要透過下列一或多個範圍授權:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

getWidth()

以點為單位傳回資料欄寬度。

回攻員

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