Object

Padding

The object for defining space around the content in a table cell.

Properties

bottom
*

The amount of padding between the bottom of the cell and the content, as a number in points or using the available units for components. See Specifying Measurements for Components.

left
*

The amount of padding between the left side of the cell and the content, as a number in points or using the available units for components.See Specifying Measurements for Components.

right
*

The amount of padding between the right side of the cell and the content, as as a number in points or using the available units for components.See Specifying Measurements for Components.

top
*

The amount of padding between the top of the cell and the content, as as a number in points or using the available units for components. See Specifying Measurements for Components.

Discussion

Use cell padding to add space around the content in the cell. For example, you can set the amount of padding between the right side of the cell and the content, or the left side of the cell and the content.

This object can be used in TableCellStyle and ConditionalTableCellStyle.

Example

{ "componentStyles": { "exampleForTables": { "tableStyle": { "cells": { "verticalAlignment": "top", "padding": { "left": 6, "right": 6, "bottom": 4, "top": 2 } } } } }}

See Also

Table Styles

Defining and Using Table Styles

Apply table styles, such as borders and backgrounds, to the rows, columns, and cells in your HTML and JSON tables.

object TableStyle

The object for defining a style for rows, columns, cells, and headers in a table.

object TableRowStyle

The object for applying styles to rows in a table.

object ConditionalTableRowStyle

The object for applying styles to table rows that meet certain conditions.

object TableRowSelector

The object for defining conditions that will cause a conditional style to be applied to a row.

object TableColumnStyle

The object for applying styles to columns in a table.

object ConditionalTableColumnStyle

The object for applying styles to table columns that meet certain conditions.

object TableColumnSelector

The object for defining conditions that will cause a conditional style to be applied to a column.

object TableCellStyle

The object for applying styles to cells in a table.

object ConditionalTableCellStyle

The object for applying a style to table cells that meet certain conditions.

object TableCellSelector

The object for defining conditions that will cause a conditional style to be applied to a cell.

object TableBorder

The object for setting borders for tables.

object TableStrokeStyle

The object for defining the color, width, and style of a stroke in a table.

object FormattedText

The object for specifying formatted text content and styling for captions in table cells.