# Javascript: TableCellFormat.topBorder Property

> The cell's top border.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 28.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: TableCellFormat.topBorder Property
- **155 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/tablecellformat/topborder-property/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/tablecellformat/topborder-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/tablecellformat/topborder-property/llms-full.txt

---

### Description

The cell's top border.

### Syntax

```javascript
<TableCellBorder> TableCellFormat.topBorder
```

### Examples

The following example demonstrates `TableCellFormat.topBorder` in a practical document-editing workflow. The cell's top border.

```javascript
function inspectTopBorder(tableCellFormat) {
    const topBorder = tableCellFormat.topBorder;
    console.log("top border:", topBorder);
}
```

### Limitations

Read Only.

---

## Nearby

- **Previous:** [Javascript: TableCellFormat.setVerticalAlignment Method](https://docs.textcontrol.com/ds-server/reference/javascript/tablecellformat/setverticalalignment-method/llms-full.txt)
- **Next:** [TableCollection Object](https://docs.textcontrol.com/ds-server/reference/javascript/tablecollection/llms-full.txt)
