# Table.SplitCells Method

> Splits all selected table cells in this table. Only previously merged cells can be split. The Table.CanSplitCells property can be used to determine, if table cells can be split or not.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 17.0
- **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 > Table.SplitCells Method
- **595 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/table/splitcells-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/table/splitcells-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/table/splitcells-method/llms-full.txt

---

### Description

Splits all selected table cells in this table. Only previously merged cells can be split. The [Table.CanSplitCells](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/table/cansplitcells-property/llms-full.txt) property can be used to determine, if table cells can be split or not.

### Syntax

```csharp
public bool SplitCells();
```

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

### Return Value

The return value is true, if table cells could be split. Otherwise it is false.

### Examples

The following example restores two cells after they have been merged into a single header cell.

```csharp
textControl.Tables.Add(2, 2, 10);
Table table = textControl.Tables.GetItem(10);

table.Select(1, 1, 1, 2);
table.MergeCells();
table.Select(1, 1, 1, 1);
table.SplitCells();
```

```vbnet
textControl.Tables.Add(2, 2, 10)
Dim table As Table = textControl.Tables.GetItem(10)

table.Select(1, 1, 1, 2)
table.MergeCells()
table.Select(1, 1, 1, 1)
table.SplitCells()
```

---

## Nearby

- **Previous:** [Table.Split Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/table/split-method/llms-full.txt)
- **Next:** [TableAddPosition Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/tableaddposition/enumeration/llms-full.txt)
