Tables

表格

代表資料表的 PageElement 種類。

JSON 表示法
{
  "rows": integer,
  "columns": integer,
  "tableRows": [
    {
      object (TableRow)
    }
  ],
  "tableColumns": [
    {
      object (TableColumnProperties)
    }
  ],
  "horizontalBorderRows": [
    {
      object (TableBorderRow)
    }
  ],
  "verticalBorderRows": [
    {
      object (TableBorderRow)
    }
  ]
}
欄位
rows

integer

資料表中的資料列數。

columns

integer

資料表中的欄數。

tableRows[]

object (TableRow)

每個資料列的屬性和內容。

跨越多列的儲存格只會包含在其中一列,且具有大於 1 的 rowSpan

tableColumns[]

object (TableColumnProperties)

每個資料欄的屬性。

horizontalBorderRows[]

object (TableBorderRow)

水平儲存格框線的屬性。

表格的水平儲存格框線會以格線表示。格線的列數會比表格多一列,欄數則與表格相同。舉例來說,如果表格是 3 x 3,水平邊框會以 4 列 3 欄的格線表示。

verticalBorderRows[]

object (TableBorderRow)

垂直儲存格框線的屬性。

表格的直向儲存格邊框會以格線表示。格線的列數與表格相同,但欄數比表格多一欄。舉例來說,如果表格是 3 x 3,其垂直邊框會以 3 列 4 欄的格線表示。

TableRow

資料表中每個資料列的屬性和內容。

JSON 表示法
{
  "rowHeight": {
    object (Dimension)
  },
  "tableRowProperties": {
    object (TableRowProperties)
  },
  "tableCells": [
    {
      object (TableCell)
    }
  ]
}
欄位
rowHeight

object (Dimension)

資料列的高度。

tableRowProperties

object (TableRowProperties)

資料列的屬性。

tableCells[]

object (TableCell)

每個儲存格的屬性和內容。

跨越多個資料欄的儲存格只會以大於 1 的 columnSpan 表示一次。因此,這個集合的長度不一定與整個資料表的欄數相符。

TableRowProperties

資料表中每個資料列的屬性。

JSON 表示法
{
  "minRowHeight": {
    object (Dimension)
  }
}
欄位
minRowHeight

object (Dimension)

資料列的最小高度。為顯示資料列儲存格中的所有文字,系統會在 Google 簡報編輯器中,以等於或大於這個值的高度算繪資料列。

TableCell

每個表格儲存格的屬性和內容。

JSON 表示法
{
  "location": {
    object (TableCellLocation)
  },
  "rowSpan": integer,
  "columnSpan": integer,
  "text": {
    object (TextContent)
  },
  "tableCellProperties": {
    object (TableCellProperties)
  }
}
欄位
location

object (TableCellLocation)

儲存格在表格中的位置。

rowSpan

integer

儲存格的列跨度。

columnSpan

integer

儲存格的欄跨度。

text

object (TextContent)

儲存格的文字內容。

tableCellProperties

object (TableCellProperties)

表格儲存格的屬性。

TableCellLocation

表格中單一表格儲存格的位置。

JSON 表示法
{
  "rowIndex": integer,
  "columnIndex": integer
}
欄位
rowIndex

integer

從 0 開始的列索引。

columnIndex

integer

從 0 開始的資料欄索引。

TableCellProperties

TableCell 的屬性。

JSON 表示法
{
  "tableCellBackgroundFill": {
    object (TableCellBackgroundFill)
  },
  "contentAlignment": enum (ContentAlignment)
}
欄位
tableCellBackgroundFill

object (TableCellBackgroundFill)

表格儲存格的背景填滿顏色。預設填滿顏色與 Google 簡報編輯器中新建立的表格儲存格填滿顏色相同。

contentAlignment

enum (ContentAlignment)

表格儲存格中內容的對齊方式。預設對齊方式與 Google 簡報編輯器中新建立表格儲存格的對齊方式相同。

TableCellBackgroundFill

表格儲存格背景填滿。

JSON 表示法
{
  "propertyState": enum (PropertyState),

  // Union field kind can be only one of the following:
  "solidFill": {
    object (SolidFill)
  }
  // End of list of possible types for union field kind.
}
欄位
propertyState

enum (PropertyState)

背景填滿屬性狀態。

更新表格儲存格的填滿顏色時,除非在同一要求中指定其他值,否則系統會隱含地將這個欄位更新為 RENDERED。如要讓表格儲存格沒有填滿顏色,請將這個欄位設為 NOT_RENDERED。在這種情況下,系統會忽略在同一要求中設定的其他任何填寫欄位。

聯集欄位 kind。背景填滿類型。 kind 只能是下列其中一項:
solidFill

object (SolidFill)

純色填滿。

TableColumnProperties

資料表中每個資料欄的屬性。

JSON 表示法
{
  "columnWidth": {
    object (Dimension)
  }
}
欄位
columnWidth

object (Dimension)

資料欄的寬度。

TableBorderRow

資料表中每個邊界列的內容。

JSON 表示法
{
  "tableBorderCells": [
    {
      object (TableBorderCell)
    }
  ]
}
欄位
tableBorderCells[]

object (TableBorderCell)

每個邊框儲存格的屬性。如果邊框的相鄰表格儲存格已合併,則不會納入回應。

TableBorderCell

每個邊框儲存格的屬性。

JSON 表示法
{
  "location": {
    object (TableCellLocation)
  },
  "tableBorderProperties": {
    object (TableBorderProperties)
  }
}
欄位
location

object (TableCellLocation)

邊框在邊框表格中的位置。

tableBorderProperties

object (TableBorderProperties)

邊框屬性。

TableBorderProperties

TableBorderCell 的邊框樣式屬性。

JSON 表示法
{
  "tableBorderFill": {
    object (TableBorderFill)
  },
  "weight": {
    object (Dimension)
  },
  "dashStyle": enum (DashStyle)
}
欄位
tableBorderFill

object (TableBorderFill)

表格邊框的填滿。

weight

object (Dimension)

邊框的粗細。

dashStyle

enum (DashStyle)

框線的虛線樣式。

TableBorderFill

邊框的填滿顏色。

JSON 表示法
{

  // Union field kind can be only one of the following:
  "solidFill": {
    object (SolidFill)
  }
  // End of list of possible types for union field kind.
}
欄位
聯集欄位 kind。填入類型。 kind 只能是下列其中一項:
solidFill

object (SolidFill)

實心填滿。