---
title: TableBorder
framework: applenewsformat
role: symbol
role_heading: Object
path: applenewsformat/tableborder
---

# TableBorder

The object for setting borders for tables.

## Declaration

```data
object TableBorder
```

## Properties

all: Defines the stroke properties of the border. You can’t set stroke properties for each side; you can only disable or enable the border for each side. bottom: Indicates whether Apple News applies the border to the bottom. left: Indicates whether Apple News applies the border to the left side. right: Indicates whether Apple News applies the border to the right side. top: Indicates whether Apple News applies the border to the top.

## Discussion

Discussion The TableBorder object defines a table cell border. The border style is the same for all sides of the table cell. Use a value of false for any side of a border that you don’t want to show. Example {   "componentStyles": {     "exampleStyle": {       "tableStyle": {         "cells": {           "border": {             "all": {               "width": 2,               "color": "#ddd",               "style": "solid"             },             "left": false,             "right": false           }         }       }     }   } }

## See Also

### Table Styles

- [Defining and Using Table Styles](applenews/defining-and-using-table-styles.md)
- [TableStyle](applenewsformat/tablestyle.md)
- [TableRowStyle](applenewsformat/tablerowstyle.md)
- [ConditionalTableRowStyle](applenewsformat/conditionaltablerowstyle.md)
- [TableRowSelector](applenewsformat/tablerowselector.md)
- [TableColumnStyle](applenewsformat/tablecolumnstyle.md)
- [ConditionalTableColumnStyle](applenewsformat/conditionaltablecolumnstyle.md)
- [TableColumnSelector](applenewsformat/tablecolumnselector.md)
- [TableCellStyle](applenewsformat/tablecellstyle.md)
- [ConditionalTableCellStyle](applenewsformat/conditionaltablecellstyle.md)
- [TableCellSelector](applenewsformat/tablecellselector.md)
- [TableStrokeStyle](applenewsformat/tablestrokestyle.md)
- [Padding](applenewsformat/padding.md)
- [FormattedText](applenewsformat/formattedtext.md)
