# TableCellCollection.CanRemove Property

> Gets a value indicating whether table cells can be removed. Table cells can be removed, if either the current text input position is in a table, or if a part of a table is selected.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 17.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.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 Server > Reference > TXTextControl > TableCellCollection.CanRemove Property
- **592 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablecellcollection/canremove-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablecellcollection/canremove-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablecellcollection/canremove-property/llms-full.txt

---

### Description

Gets a value indicating whether table cells can be removed. Table cells can be removed, if either the current text input position is in a table, or if a part of a table is selected.

### Syntax

```csharp
public bool CanRemove { get; }
```

```vbnet
Public ReadOnly Property CanRemove As Boolean
```

### Examples

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

```csharp
textControl.Tables.Add(3, 3, 10);
Table table = textControl.Tables.GetItem(10);
TableCellCollection tableCellCollection = table.Cells;

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

```vbnet
textControl.Tables.Add(3, 3, 10)
Dim table As Table = textControl.Tables.GetItem(10)
Dim tableCellCollection As TableCellCollection = table.Cells

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

### Limitations

Read only.

---

## Nearby

- **Previous:** [TableCellCollection Class](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablecellcollection/llms-full.txt)
- **Next:** [TableCellCollection.CopyTo Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablecellcollection/copyto-method/llms-full.txt)
