<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "TabularData",
  "identifier" : "/documentation/TabularData/AnyColumnProtocol",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "TabularData"
    ],
    "preciseIdentifier" : "s:11TabularData17AnyColumnProtocolP"
  },
  "title" : "AnyColumnProtocol"
}
-->

# AnyColumnProtocol

A type that represents a type-erased column.

```
protocol AnyColumnProtocol
```

## Overview

`AnyColumnProtocol` defines the common functionality for type-erased column types.
Its typed counterpart is [`ColumnProtocol`](/documentation/TabularData/ColumnProtocol).

## Topics

### Inspecting a Type-Erased Column Type

[`var name: String`](/documentation/TabularData/AnyColumnProtocol/name)

The name of the column type.

[`var count: Int`](/documentation/TabularData/AnyColumnProtocol/count)

The number of elements in the column type.

[`var wrappedElementType: any Any.Type`](/documentation/TabularData/AnyColumnProtocol/wrappedElementType)

The underlying type of the column type’s elements.

### Retrieving Elements

[`subscript(Int) -> Any?`](/documentation/TabularData/AnyColumnProtocol/subscript(_:)-1dl8y)

Retrieves an element at a position in the column type.

[`subscript(Range<Int>) -> AnyColumnSlice`](/documentation/TabularData/AnyColumnProtocol/subscript(_:)-81v4q)

Retrieves a contiguous subrange of the column type’s elements.

## Relationships

### Conforming Types

[`AnyColumnSlice`](/documentation/TabularData/AnyColumnSlice)

[`AnyColumn`](/documentation/TabularData/AnyColumn)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)