DynaPDF.Table.SetBorderWidth
----------------------------

Sets or changes the border width.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DynaPDF](component_DynaPDF.md) | [3.5](newinversion35.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "DynaPDF.Table.SetBorderWidth"; Table; Row; Col; Left; Right; Top; Bottom ) 

**MBS**( **"DynaPDF.Table.SetBorderWidth";** /\* Sets or changes the border width. \*/  
**$Table**; /\* The identifier for the table. \*/   
**$Row**; /\* The row number. Range from 0 to [DynaPDF.Table.GetNumRows](DynaPDFTableGetNumRows.md)-1. Pass -1 for all rows.e.g. 0 \*/   
**$Col**; /\* The column number. Range from 0 to [DynaPDF.Table.GetNumCols](DynaPDFTableGetNumCols.md)-1. Pass -1 for all columns.e.g. 0 \*/   
**$Left**; /\* Value for the left side.e.g. 0 \*/   
**$Right**; /\* Value for the right side.e.g. 0 \*/   
**$Top**; /\* Value for the top side.e.g. 0 \*/   
**$Bottom**) /\* Value for the bottom side.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Table | The identifier for the table. | $Table |
| Row | The row number. Range from 0 to [DynaPDF.Table.GetNumRows](DynaPDFTableGetNumRows.md)-1. Pass -1 for all rows. | 0 |
| Col | The column number. Range from 0 to [DynaPDF.Table.GetNumCols](DynaPDFTableGetNumCols.md)-1. Pass -1 for all columns. | 0 |
| Left | Value for the left side. | 0 |
| Right | Value for the right side. | 0 |
| Top | Value for the top side. | 0 |
| Bottom | Value for the bottom side. | 0 |

### Result

Returns OK or error.

### Description

Sets or changes the border width.  
The properties can be set to the table, rows, columns, and cells as follows:  
| Row | Col | Applies to |
|---|---|---|
| -1 | -1 | Table |
| -1 | &gt;=0 | Column |
| &gt;=0 | -1 | Row |
| &gt;=0 | &gt;=0 | Cell |

The border with is inherited from columns and rows (in this order), but not from the table since the table has its own border.  
Individual values can be set to each side of a cell. Note that the properties will be not be rotated with a cell. The left side is always left, independent of the cell orientation.  
### Examples

Set border width to 1 point:

 MBS ("DynaPDF.Table.SetBorderWidth"; $table ; -1; -1; 1; 1; 1; 1)  
### See also

- [DynaPDF.SetAnnotBorderWidth](DynaPDFSetAnnotBorderWidth.md)
- [DynaPDF.Table.Create](DynaPDFTableCreate.md)
- [DynaPDF.Table.Draw](DynaPDFTableDraw.md)
- [DynaPDF.Table.GetNumCols](DynaPDFTableGetNumCols.md)
- [DynaPDF.Table.GetNumRows](DynaPDFTableGetNumRows.md)
- [DynaPDF.Table.GetTableWidth](DynaPDFTableGetTableWidth.md)
- [DynaPDF.Table.SetBoxProperty](DynaPDFTableSetBoxProperty.md)
- [DynaPDF.Table.SetColWidth](DynaPDFTableSetColWidth.md)
- [DynaPDF.Table.SetGridWidth](DynaPDFTableSetGridWidth.md)
- [DynaPDF.Table.SetRowHeight](DynaPDFTableSetRowHeight.md)

### Example Databases

- [DynaPDF/Book Creation](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Book%20Creation.shtml#3ScriptAnchor_)
- [DynaPDF/Catalog with tables](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Catalog%20with%20tables.shtml#1ScriptAnchor_)
- [DynaPDF/Invoice/Invoice](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Invoice/Invoice.shtml#3ScriptAnchor_)
- [DynaPDF/Merge PDFs](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Merge%20PDFs.shtml#5ScriptAnchor_)
- [DynaPDF/Report](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Report.shtml#1ScriptAnchor_)
- [DynaPDF/Tables](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Tables.shtml#1ScriptAnchor_)

This function checks for a license.

Created 18th August 2014 , last changed 18th August 2014

  
[DynaPDF.Table.Release](DynaPDFTableRelease.md) - [DynaPDF.Table.SetBoxProperty](DynaPDFTableSetBoxProperty.md)

[HTML Version](DynaPDFTableSetBorderWidth.shtml)