# TableColumnCollection.Remove Method

> Removes the table column at the current text input position or all selected table columns when a text selection exists.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Method
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl > TableColumnCollection.Remove Method
- **520 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tablecolumncollection/remove-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tablecolumncollection/remove-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tablecolumncollection/remove-method/llms-full.txt

---

### Description

Removes the table column at the current text input position or all selected table columns when a text selection exists.

### Syntax

```csharp
public bool Remove();
```

```vbnet
Public Function Remove() As Boolean
```

### Return Value

The return value is true, if table columns could be removed. Otherwise it is false.

### Examples

The following example creates a small report table and works with its structure by using `TableColumnCollection.Remove`.

```csharp
textControl.Tables.Add(3, 3, 10);
Table table = textControl.Tables.GetItem(10);
TableColumnCollection tableColumnCollection = table.Columns;

if (tableColumnCollection.Remove())
{
    Console.WriteLine("Remove completed successfully.");
}
```

```vbnet
textControl.Tables.Add(3, 3, 10)
Dim table As Table = textControl.Tables.GetItem(10)
Dim tableColumnCollection As TableColumnCollection = table.Columns

If tableColumnCollection.Remove() Then
    Console.WriteLine("Remove completed successfully.")
End If
```

---

## Nearby

- **Previous:** [TableColumnCollection.GetItem Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tablecolumncollection/getitem-method/llms-full.txt)
- **Next:** [TableEventArgs Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tableeventargs/llms-full.txt)
