# FrameBaseCollection.Clear Method

> Removes all objects from the collection and from the document.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 13.0
- **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 > FrameBaseCollection.Clear Method
- **239 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/framebasecollection/clear-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/framebasecollection/clear-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/framebasecollection/clear-method/llms-full.txt

---

### Description

Removes all objects from the collection and from the document.

### Syntax

```csharp
public void Clear();
```

```vbnet
Public Sub Clear()
```

### Examples

The following example clears the frame base collection. The created object is then available to the surrounding document workflow.

```csharp
frameBaseCollection.Clear();
Console.WriteLine("Frame Base Collection is ready for use.");
```

```vbnet
frameBaseCollection.Clear()
Console.WriteLine("Frame Base Collection is ready for use.")
```

---

## Nearby

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