Class TableCell

TableCell

表格中的儲存格。

方法

方法傳回類型簡短說明
getColumnIndex()Integer傳回資料表儲存格的欄索引 (從 0 開始)。
getColumnSpan()Integer傳回表格儲存格的欄跨度。
getContentAlignment()ContentAlignment傳回表格儲存格中文字的 ContentAlignment
getFill()Fill傳回表格儲存格的填滿顏色。
getHeadCell()TableCell|null傳回這個表格儲存格的標題儲存格。
getMergeState()CellMergeState傳回表格儲存格的合併狀態。
getParentColumn()TableColumn傳回包含目前儲存格的表格欄。
getParentRow()TableRow傳回包含目前儲存格的表格列。
getParentTable()Table傳回包含目前儲存格的表格。
getRowIndex()Integer傳回資料表儲存格的列索引 (從 0 開始)。
getRowSpan()Integer傳回表格儲存格的列跨度。
getText()TextRange傳回表格儲存格的文字內容。
setContentAlignment(contentAlignment)TableCell設定表格儲存格中文字的 ContentAlignment

內容詳盡的說明文件

getColumnIndex()

傳回資料表儲存格的欄索引 (從 0 開始)。

回攻員

Integer

授權

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

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

getColumnSpan()

傳回表格儲存格的欄跨度。

回攻員

Integer

授權

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

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

getContentAlignment()

傳回表格儲存格中文字的 ContentAlignment

回攻員

ContentAlignment

授權

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

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

getFill()

傳回表格儲存格的填滿顏色。

回攻員

Fill

授權

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

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

getHeadCell()

傳回這個表格儲存格的標題儲存格。如果這個儲存格尚未合併,或這個儲存格是標頭儲存格,則傳回 null

回攻員

TableCell|null

授權

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

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

getMergeState()

傳回表格儲存格的合併狀態。

回攻員

CellMergeState

授權

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

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

getParentColumn()

傳回包含目前儲存格的表格欄。

回攻員

TableColumn

授權

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

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

getParentRow()

傳回包含目前儲存格的表格列。

回攻員

TableRow

授權

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

  • 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

getRowIndex()

傳回資料表儲存格的列索引 (從 0 開始)。

回攻員

Integer

授權

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

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

getRowSpan()

傳回表格儲存格的列跨度。

回攻員

Integer

授權

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

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

getText()

傳回表格儲存格的文字內容。如果儲存格已合併,但不是標題儲存格,則傳回 null

表格儲存格中的文字一律會以換行字元結尾。

回攻員

TextRange

授權

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

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

setContentAlignment(contentAlignment)

設定表格儲存格中文字的 ContentAlignment

參數

名稱類型說明
contentAlignmentContentAlignment

回攻員

TableCell

授權

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

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