# CollectionSchemaField Class

> Allows for the creation of collection schema field objects.

- Product: Adobe PDF Library 18
- Language: .NET
- Version: APDFL18.0.5PlusP2e
- HTML page: https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/class/CollectionSchemaField
- Version index: https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/llms.txt

```csharp
class CollectionSchemaField : SystemIDisposable
```

**Namespace:** `Datalogics::PDFL`

**Inherits from:** `SystemIDisposable`

## Description

Allows for the creation of collection schema field objects.

Parameters that are part of a schema's field may be set.

**Referenced by:** [`CollectionSchema`](https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/class/CollectionSchema.md), [`CollectionSchemaField`](https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/class/CollectionSchemaField.md), [`FileAttachment`](https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/class/FileAttachment.md)

**Uses types:** [`CollectionSchemaField`](https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/class/CollectionSchemaField.md), [`SchemaFieldSubtype`](https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/enum/SchemaFieldSubtype.md)

## Constructors

### CollectionSchemaField

```csharp
Datalogics.PDFL.CollectionSchemaField.CollectionSchemaField(string fieldID, SchemaFieldSubtype subtype)
```

*constructor*

**Parameters**

- `fieldID` (`string`): the schema field ID. The ID is used during creation and extraction of the schema field. It is the unique identifier of the schema field.
- `subtype` ([`SchemaFieldSubtype`](https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/enum/SchemaFieldSubtype.md)): the schema field subtype. The subtypes are predefined. The value of this parameter must correspond to the one of the SchemaFieldSubtype enum values.

CCollectionSchemaField allows to create CollectionSchemaField object.

The constructor accepts identifier value and subtype required by the schema field.

## Properties

### Editable

```csharp
bool Datalogics.PDFL.CollectionSchemaField.Editable { get; set; }
```

### ID

```csharp
string Datalogics.PDFL.CollectionSchemaField.ID { get; }
```

### Index

```csharp
int Datalogics.PDFL.CollectionSchemaField.Index { get; set; }
```

### Name

```csharp
string Datalogics.PDFL.CollectionSchemaField.Name { get; set; }
```

### Subtype

```csharp
SchemaFieldSubtype Datalogics.PDFL.CollectionSchemaField.Subtype { get; }
```

### Visible

```csharp
bool Datalogics.PDFL.CollectionSchemaField.Visible { get; set; }
```

## Methods

### Dispose

```csharp
void Datalogics.PDFL.CollectionSchemaField.Dispose()
```

**Returns:** `void`
