# CollectionSchemaField Class

> Allows for the creation of collection schema field objects.

- Product: Adobe PDF Library 21
- Language: .NET Framework
- Version: APDFL21.0.0PlusP1e
- HTML page: https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/CollectionSchemaField
- Version index: https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/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/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/CollectionSchema.md), [`FileAttachment`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/FileAttachment.md)

**Uses types:** [`SchemaFieldSubtype`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/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/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/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; }
```

GetEditable allows to obtain information about edit mode of the current field.

### ID

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

GetID allows to obtain the unique id with which schema field has been created.

### Index

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

GetIndex allows to obtain field index.

### Name

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

GetName allows to obtain field name.

### Subtype

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

GetSubtype allows to obtain the field subtype.

### Visible

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

GetVisible allows to obtain information about filed visibility.

## Methods

### Dispose

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

**Returns:** `void`
