# FrameBaseCollection Class

> The FrameBaseCollection class is the base class of the ImageCollection and TextFrameCollection classes. It contains their base functionality. The FrameBaseCollection 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
- **Implements:** `System.Collections.ICollection`, `System.Collections.IEnumerable`
- **Derived:** `TXTextControl.DataVisualization.BarcodeCollection`, `TXTextControl.DataVisualization.ChartCollection`, `TXTextControl.DataVisualization.DrawingCollection`, `TXTextControl.FrameCollection`, `TXTextControl.ImageCollection`, `TXTextControl.SignatureFieldCollection`, `TXTextControl.TextFrameCollection`
- **Path:** TX Text Control .NET Server > Reference > TXTextControl > FrameBaseCollection Class
- **706 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/framebasecollection/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/framebasecollection/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/framebasecollection/llms-full.txt

---

### Description

The FrameBaseCollection class is the base class of the [ImageCollection](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/imagecollection/llms-full.txt) and [TextFrameCollection](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframecollection/llms-full.txt) classes. It contains their base functionality. The FrameBaseCollection class implements the IEnumerable and the ICollection interfaces.

### Syntax

```csharp
public abstract class FrameBaseCollection : ICollection, IEnumerable
```

```vbnet
Public MustInherit Class FrameBaseCollection
    Implements ICollection, IEnumerable
```

### Examples

The following example includes the count value from a Frame Base Collection object in application diagnostics. The created object is then available to the surrounding document workflow.

```csharp
Console.WriteLine($"Count: {frameBaseCollection.Count}");
Console.WriteLine("Frame Base Collection is ready for use.");
```

```vbnet
Console.WriteLine($"Count: {frameBaseCollection.Count}")
Console.WriteLine("Frame Base Collection is ready for use.")
```

---

## In This Section

- [FrameBaseCollection.Clear Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/framebasecollection/clear-method/llms-full.txt): Removes all objects from the collection and from the document.
- [FrameBaseCollection.Count Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/framebasecollection/count-property/llms-full.txt): Gets the number of elements contained in the collection.
- [FrameBaseCollection.GetEnumerator Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/framebasecollection/getenumerator-method/llms-full.txt): Returns an enumerator that can be used to iterate through the collection.
- [FrameBaseCollection.IsSynchronized Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/framebasecollection/issynchronized-property/llms-full.txt): Returns true if the collection is designed to be thread safe, otherwise, it returns false.
- [FrameBaseCollection.SyncRoot Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/framebasecollection/syncroot-property/llms-full.txt): Gets an object that can be used to synchronize access to the collection.

---

## Nearby

- **Previous:** [FrameBase.TextPosition Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/framebase/textposition-property/llms-full.txt)
- **Next:** [FrameBaseCollection.Clear Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/framebasecollection/clear-method/llms-full.txt)
