DynaPDF.Table.SetCellOrientation
--------------------------------

Sets the cell orientation.

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

MBS( "DynaPDF.Table.SetCellOrientation"; Table; Row; Col; Orientation ) 

**MBS**( **"DynaPDF.Table.SetCellOrientation";** /\* Sets the cell orientation. \*/  
**$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 \*/   
**$Orientation**) /\* The new orientation.e.g. 90 \*/ 

### 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 |
| Orientation | The new orientation. | 90 |

### Result

Returns OK or error.

### Description

Sets the cell orientation.   
The cell orientation is inherited from the table, column, row, and finally from the cell. The contents in a cell can be rotated in 90 degrees steps. Positive values rotate the cell content counter clockwise and negative values clockwise.  
The row height should be set to value greater zero if a cell uses a landscape orientation. This is important if the height cannot be computed from the cell contents. This is the case if a cell contains text and if the flag NoLineBreak was not set.  
The orientation 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 |

### See also

- [DynaPDF.Table.AddRow](DynaPDFTableAddRow.md)
- [DynaPDF.Table.AddRows](DynaPDFTableAddRows.md)
- [DynaPDF.Table.GetNumCols](DynaPDFTableGetNumCols.md)
- [DynaPDF.Table.GetNumRows](DynaPDFTableGetNumRows.md)
- [DynaPDF.Table.SetCellAction](DynaPDFTableSetCellAction.md)

This function checks for a license.

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

  
[DynaPDF.Table.SetCellImageEx](DynaPDFTableSetCellImageEx.md) - [DynaPDF.Table.SetCellPadding](DynaPDFTableSetCellPadding.md)

[HTML Version](DynaPDFTableSetCellOrientation.shtml)