# TablePartCollection.GetEnumerator Method

> Returns an enumerator that can be used to iterate through the collection.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Method
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WPF.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 WPF > Reference > TXTextControl > TablePartCollection.GetEnumerator Method
- **296 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tablepartcollection/getenumerator-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tablepartcollection/getenumerator-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tablepartcollection/getenumerator-method/llms-full.txt

---

### Description

Returns an enumerator that can be used to iterate through the collection.

### Syntax

```csharp
public TablePartCollection.TablePartEnumerator GetEnumerator();
```

```vbnet
Public Function GetEnumerator() As TablePartCollection.TablePartEnumerator
```

### Return Value

The return value is an IEnumerator that represents the collection.

### Examples

The following example retrieves enumerator from the table part collection.

```csharp
var result = tablePartCollection.GetEnumerator();
Console.WriteLine($"Get Enumerator result: {result}");
```

```vbnet
Dim result = tablePartCollection.GetEnumerator()
Console.WriteLine($"Get Enumerator result: {result}")
```

---

## Nearby

- **Previous:** [TablePartCollection.Count Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tablepartcollection/count-property/llms-full.txt)
- **Next:** [TablePartCollection.IsSynchronized Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tablepartcollection/issynchronized-property/llms-full.txt)
