# TableColumnCollection.CanRemove Property

> Gets a value indicating whether table columns can be removed. Columns 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
- **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 > TableColumnCollection.CanRemove Property
- **596 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablecolumncollection/canremove-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablecolumncollection/canremove-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablecolumncollection/canremove-property/llms-full.txt

---

### Description

Gets a value indicating whether table columns can be removed. Columns 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 `TableColumnCollection.CanRemove`.

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

if (tableColumnCollection.CanRemove)
{
    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.CanRemove Then
    If tableColumnCollection.Remove() Then
        Console.WriteLine("Remove completed successfully.")
    End If
End If
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [TableColumnCollection.CanAdd Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablecolumncollection/canadd-property/llms-full.txt)
- **Next:** [TableColumnCollection.CopyTo Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablecolumncollection/copyto-method/llms-full.txt)
