> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Collection class

**Namespace:** [Ans.DataProcessing](https://developer.synopsys.com/docs/dpf/dpf-mechanical/api/Ans.DataProcessing)

Collection[T]()

Collection\[T]\(intptr: IntPtr)

## Class Information

| Property | Value |
| - | - |
| Namespace | `Ans.DataProcessing` |
| Assembly | `CS_DataProcessing` |
| Base Class | `Ans.DataProcessing.internal_objects.BaseCollection` |

## Constructors

#### Constructor

```python theme={null}
Collection`1()
```

#### Constructor

```python theme={null}
Collection`1(intptr)
```

**Parameters:**

* `intptr` (*IntPtr*)

## Methods

#### Add

```python theme={null}
obj.Add(obj)
```

**Parameters:**

* `obj` (*T*)

#### Set

```python theme={null}
obj.Set(index, obj)
```

**Parameters:**

* `index` (*int*)
* `obj` (*T*)

#### Get

```python theme={null}
result = obj.Get(index)
```

**Parameters:**

* `index` (*int*)

**Returns:** *T*

## Properties

#### Item

**Type:** *T*

```python theme={null}
# Get or set the property
value = obj.Item
obj.Item = new_value
```
