# DataColumnInfoCollection Class

> An instance of the DataColumnInfoCollection class contains all data columns of a data table in a data source represented through objects of the type DataColumnInfo. The DataColumnInfoCollection class implements the interface ICollection<DocumentServer.DataSources.DataColumnInfo> and therefore also IEnumerable<DocumentServer.DataSources.DataColumnInfo>. This collection class is meant to be read only. For this reason all ICollection members which would cause changes to the collection content (e. g. Add(), Clear() or Remove()) throw a NotSupportedException.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 24.0
- **Namespace:** `TXTextControl.DocumentServer.DataSources`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXDocumentServer.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDocumentServer.dll` from the setup
- **Implements:** `System.Collections.Generic.ICollection<TXTextControl.DocumentServer.DataSources.DataColumnInfo>`, `System.Collections.Generic.IEnumerable<TXTextControl.DocumentServer.DataSources.DataColumnInfo>`, `System.Collections.IEnumerable`
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.DocumentServer.DataSources > DataColumnInfoCollection Class
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datacolumninfocollection/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datacolumninfocollection/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datacolumninfocollection/llms-full.txt

---

## On This Page

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

---

## In This Section

- [DataColumnInfoCollection.CopyTo Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datacolumninfocollection/copyto-method/llms.txt): Copies the elements of the collection to an array, starting at a particular index.
- [DataColumnInfoCollection.Count Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datacolumninfocollection/count-property/llms.txt): Gets the number of elements contained in the collection.
- [DataColumnInfoCollection.GetEnumerator Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datacolumninfocollection/getenumerator-method/llms.txt): Returns an enumerator that can be used to iterate through the collection.
- [DataColumnInfoCollection.IsReadOnly Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datacolumninfocollection/isreadonly-property/llms.txt): Gets a value indicating whether the collection is read only. Always returns true.
- [DataColumnInfoCollection.Item Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datacolumninfocollection/item-property/llms.txt): Gets the DataColumnInfo instance with the specified 0-based index from the collection. In C# this property is the indexer for the DataColumnInfoCollection class.

---

## Nearby

- **Previous:** [DataColumnInfo.DataType Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datacolumninfo/datatype-property/llms.txt)
- **Next:** [DataColumnInfoCollection.CopyTo Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datacolumninfocollection/copyto-method/llms.txt)
