# TableRowCollection Class

> An instance of the TableRowCollection class contains all rows of a table in a Text Control document represented through objects of the type TableRow. It can be obtained with the Table.Rows property. The TableRowCollection 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 > TableRowCollection Class
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablerowcollection/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablerowcollection/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablerowcollection/llms-full.txt

---

## On This Page

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

---

## In This Section

- [TableRowCollection.Add Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablerowcollection/add-method/llms.txt): Adds new table rows at the current text input position.
- [TableRowCollection.CanAdd Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablerowcollection/canadd-property/llms.txt): Gets a value indicating whether a new row 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.
- [TableRowCollection.CanRemove Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablerowcollection/canremove-property/llms.txt): Gets a value indicating whether selected rows can be removed.
- [TableRowCollection.CopyTo Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablerowcollection/copyto-method/llms.txt): Copies the elements of the collection to an array, starting at a particular index.
- [TableRowCollection.GetItem Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablerowcollection/getitem-method/llms.txt): Gets a particular table row from the collection.
- [TableRowCollection.Remove Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablerowcollection/remove-method/llms.txt): Removes the selected table rows or the row at the current text input position.

---

## Nearby

- **Previous:** [TableRow.Select Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablerow/select-method/llms.txt)
- **Next:** [TableRowCollection.Add Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablerowcollection/add-method/llms.txt)
