Tables

表格

A 罩杯 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)

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

跨越多個資料列的儲存格只會包含在其中一個資料列中,且 rowSpan 大於 1。

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)

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

如果儲存格橫跨多個資料欄,則只會以含有 columnSpan 大於 1。因此,這個集合的長度不一定與整個資料表的欄數相符。

TableRowProperties

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

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

object (Dimension)

資料列的高度下限。資料列會在簡報編輯器中的高度等於或大於這個值,以便顯示資料列儲存格中的所有文字。

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)

表格儲存格的背景填充。預設填滿功能與簡報編輯器中新建表格儲存格的填滿效果相符。

contentAlignment

enum (ContentAlignment)

表格儲存格中內容的對齊方式。預設對齊方式會與簡報編輯器中新建立的資料表儲存格對齊方式一致。

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)

填充顏色。