# TableColumnCollection Class

> An instance of the TableColumnCollection class contains all columns of a table in a Text Control document represented through objects of the type TableColumn. It can be obtained with the Table.Columns property. The TableColumnCollection class implements the IEnumerable and the ICollection interfaces.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Class
- **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
- **Inherits:** `TXTextControl.TablePartCollection`
- **Implements:** `System.Collections.ICollection`, `System.Collections.IEnumerable`
- **Path:** TX Text Control .NET Server > Reference > TXTextControl > TableColumnCollection Class
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablecolumncollection/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablecolumncollection/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablecolumncollection/llms-full.txt

---

## On This Page

- [Description](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablecolumncollection/#description)
- [Syntax](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablecolumncollection/#syntax)
- [Examples](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablecolumncollection/#examples)
- [Members](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablecolumncollection/#members)

---

## In This Section

- [TableColumnCollection.Add Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablecolumncollection/add-method/llms.txt): Adds a new table column at the current text input position.
- [TableColumnCollection.CanAdd Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablecolumncollection/canadd-property/llms.txt): Gets a value indicating whether a new column can be inserted at the current input position. This property does not check for protected TextFields and/or protected document sections. To perform this use in addition the TextControl.CanEdit property.
- [TableColumnCollection.CanRemove Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablecolumncollection/canremove-property/llms.txt): 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.
- [TableColumnCollection.CopyTo Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablecolumncollection/copyto-method/llms.txt): Copies the elements of the collection to an array, starting at a particular index.
- [TableColumnCollection.GetItem Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablecolumncollection/getitem-method/llms.txt): Gets a particular table column from the collection.
- [TableColumnCollection.Remove Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablecolumncollection/remove-method/llms.txt): Removes the table column at the current text input position or all selected table columns when a text selection exists.

---

## Nearby

- **Previous:** [TableColumn.Width Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablecolumn/width-property/llms.txt)
- **Next:** [TableColumnCollection.Add Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablecolumncollection/add-method/llms.txt)
