DynaPDF.Table.ClearColumn
-------------------------

Deletes the content in the specified column in all rows.

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

MBS( "DynaPDF.Table.ClearColumn"; Table; Col; Types ) 

**MBS**( **"DynaPDF.Table.ClearColumn";** /\* Deletes the content in the specified column in all rows. \*/  
**$Table**; /\* The identifier for the table. \*/   
**$Col**; /\* The column number. Range from 0 to [DynaPDF.Table.GetNumCols](DynaPDFTableGetNumCols.md)-1.e.g. 0 \*/   
**$Types**) /\* What to clear. Can be Text, Template, Action, Table, 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 |
| Col | The column number. Range from 0 to [DynaPDF.Table.GetNumCols](DynaPDFTableGetNumCols.md)-1. | 0 |
| Types | What to clear. Can be Text, Template, Action, Table, ForeGround, BackGround, AllCont or Both. Or you pass numeric values combined from the hex values int he table below. | "AllCont" |

### Description

Deletes the content in the specified column in all rows.   
The paramter Types is described in [DynaPDF.Table.ClearContent](DynaPDFTableClearContent.md) below.  
  
| 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.AddColumn](DynaPDFTableAddColumn.md)
- [DynaPDF.Table.ClearContent](DynaPDFTableClearContent.md)
- [DynaPDF.Table.ClearRow](DynaPDFTableClearRow.md)
- [DynaPDF.Table.GetNumCols](DynaPDFTableGetNumCols.md)
- [DynaPDF.Table.SetFlags](DynaPDFTableSetFlags.md)

This function checks for a license.

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

  
[DynaPDF.Table.AddRows](DynaPDFTableAddRows.md) - [DynaPDF.Table.ClearContent](DynaPDFTableClearContent.md)

[HTML Version](DynaPDFTableClearColumn.shtml)