# SignatureFieldCollection.GetItem Method

> Gets a particular signature field from the collection.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 31.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > SignatureFieldCollection.GetItem Method
- **1009 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/signaturefieldcollection/getitem-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/signaturefieldcollection/getitem-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/signaturefieldcollection/getitem-method/llms-full.txt

---

### Description

Gets a particular signature field from the collection.

### Syntax

#### GetItem()

Gets the signature field selected by the user or null if no signature field is selected.

```csharp
public SignatureField GetItem();
```

```vbnet
Public Function GetItem() As SignatureField
```

#### GetItem(int)

Gets the signature field with the specified identifier.

```csharp
public SignatureField GetItem(int id);
```

```vbnet
Public Function GetItem(id As Integer) As SignatureField
```

| Parameter | Description |
|---|---|
| id | Specifies the signature field's identifier set with the signature field's constructor or the ID property. The method returns null, if a signature field with the specified identifier does not exist. |

#### GetItem(string)

Gets the signature field with the specified name.

```csharp
public SignatureField GetItem(string name);
```

```vbnet
Public Function GetItem(name As String) As SignatureField
```

| Parameter | Description |
|---|---|
| name | Specifies the signature field's name set with set with the signature field's constructor or the Name property. The method returns null, if a signature field with the specified name does not exist. |

### Return Value

The return value is null, if a signature field with the specified parameters could not be found. Otherwise, it is an object of the type [SignatureField](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/signaturefield/llms-full.txt).

### Examples

The following example works with signature fields in the current document by using `SignatureFieldCollection.GetItem`.

```csharp
SignatureFieldCollection signatureFieldCollection = textControl.SignatureFields;
signatureFieldCollection.Add(new SignatureField(new System.Drawing.Size(3000, 1000), "ApproverSignature", 100), FrameInsertionMode.AsCharacter);

var result = signatureFieldCollection.GetItem(100);
Console.WriteLine($"Get Item result: {result}");
```

```vbnet
Dim signatureFieldCollection As SignatureFieldCollection = textControl.SignatureFields
signatureFieldCollection.Add(New SignatureField(New System.Drawing.Size(3000, 1000), "ApproverSignature", 100), FrameInsertionMode.AsCharacter)

Dim result = signatureFieldCollection.GetItem(100)
Console.WriteLine($"Get Item result: {result}")
```

---

## Nearby

- **Previous:** [SignatureFieldCollection.CopyTo Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/signaturefieldcollection/copyto-method/llms-full.txt)
- **Next:** [SignatureFieldCollection.Remove Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/signaturefieldcollection/remove-method/llms-full.txt)
