DynaPDF.Table.ClearRow
----------------------

The function deletes the content in the specified row.

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

MBS( "DynaPDF.Table.ClearRow"; Table; Row; Types ) 

**MBS**( **"DynaPDF.Table.ClearRow";** /\* The function deletes the content in the specified row. \*/  
**$Table**; /\* The identifier for the table. \*/   
**$Row**; /\* The row number. Range from 0 to [DynaPDF.Table.GetNumRows](DynaPDFTableGetNumRows.md)-1.e.g. 0 \*/   
**$Types**) /\* What to clear. Can be Text, Template, Table, Action, ForeGround, BackGround, AllCont or Both. Or you pass numeric values combined from the hex values int he table below.e.g. "AllCont" \*/ 

### 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. | 0 |
| Types | What to clear. Can be Text, Template, Table, Action, ForeGround, BackGround, AllCont or Both. Or you pass numeric values combined from the hex values int he table below. | "AllCont" |

### Result

Returns OK or error.

### Description

The function deletes the content in the specified row.   
The paramter Types is described in [DynaPDF.Table.ClearContent](DynaPDFTableClearContent.md).  
  
| Type | Hex Number | Description |
|---|---|---|
| Text | 0x00000001 | Text is always a foreground object |
| Image | 0x00000002 | Images |
| Template | 0x00000004 | Templates |
| Table | 0x00000008 | Sub tables are always foreground objects |
| AllCont | 0x0000001F | Delete all content types |
| ForeGround | 0x10000000 | Only foreground objects? |
| BackGround | 0x20000000 | Only background objects? |
| Both | 0x30000000 | Delete both fore- and background objects |

### See also

- [DynaPDF.Table.AddRow](DynaPDFTableAddRow.md)
- [DynaPDF.Table.ClearContent](DynaPDFTableClearContent.md)
- [DynaPDF.Table.Create](DynaPDFTableCreate.md)
- [DynaPDF.Table.DeleteCol](DynaPDFTableDeleteCol.md)
- [DynaPDF.Table.DeleteRow](DynaPDFTableDeleteRow.md)
- [DynaPDF.Table.DeleteRows](DynaPDFTableDeleteRows.md)
- [DynaPDF.Table.GetNextRow](DynaPDFTableGetNextRow.md)
- [DynaPDF.Table.GetNumRows](DynaPDFTableGetNumRows.md)
- [DynaPDF.Table.Release](DynaPDFTableRelease.md)
- [DynaPDF.Table.SetFlags](DynaPDFTableSetFlags.md)

This function checks for a license.

Created 18th August 2014 , last changed 22nd February 2019

  
[DynaPDF.Table.ClearContent](DynaPDFTableClearContent.md) - [DynaPDF.Table.Create](DynaPDFTableCreate.md)

[HTML Version](DynaPDFTableClearRow.shtml)