# TableCollection.Remove Method

> Removes the table at the current text input position. To remove a particular table with a certain identifier use the base class's implementation TableBaseCollection.Remove.

- **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 > TableCollection.Remove Method
- **478 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tablecollection/remove-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tablecollection/remove-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tablecollection/remove-method/llms-full.txt

---

### Description

Removes the table at the current text input position. To remove a particular table with a certain identifier use the base class's implementation [TableBaseCollection.Remove](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tablebasecollection/remove-method/llms-full.txt).

### Syntax

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

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

### Return Value

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

### Examples

The following example works with tables in the current document by using `TableCollection.Remove`.

```csharp
TableCollection tableCollection = textControl.Tables;
tableCollection.Add(3, 3, 10);

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

```vbnet
Dim tableCollection As TableCollection = textControl.Tables
tableCollection.Add(3, 3, 10)

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

---

## Nearby

- **Previous:** [TableCollection.GridLines Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tablecollection/gridlines-property/llms-full.txt)
- **Next:** [TableCollection.SupportedFormulaFunctions Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tablecollection/supportedformulafunctions-property/llms-full.txt)
