# TableRowCollection.Remove Method

> Removes the selected table rows or the row at the current text input position.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Method
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.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 Windows Forms > Reference > TXTextControl > TableRowCollection.Remove Method
- **507 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/tablerowcollection/remove-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/tablerowcollection/remove-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/tablerowcollection/remove-method/llms-full.txt

---

### Description

Removes the selected table rows or the row at the current text input position.

### Syntax

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

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

### Return Value

The return value is true, if the rows could be removed. Otherwise it is false.

### Examples

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

```csharp
textControl.Tables.Add(3, 3, 10);
Table table = textControl.Tables.GetItem(10);
TableRowCollection tableRowCollection = table.Rows;

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

```vbnet
textControl.Tables.Add(3, 3, 10)
Dim table As Table = textControl.Tables.GetItem(10)
Dim tableRowCollection As TableRowCollection = table.Rows

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

---

## Nearby

- **Previous:** [TableRowCollection.GetItem Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/tablerowcollection/getitem-method/llms-full.txt)
- **Next:** [TabType Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/tabtype/enumeration/llms-full.txt)
