# SignatureImage.FilterIndex Property

> Gets or sets the format of the image. This is the number of the filter in the string returned through the ImageCollection.ImportFilters property, beginning with number one. If the ImageCollection.ImportFilters property is used to initialize the FileDialog.Filter property of a Framework dialog, the FileDialog.FilterIndex property can be used as value for this property.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **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 > SignatureImage.FilterIndex Property
- **875 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/signatureimage/filterindex-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/signatureimage/filterindex-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/signatureimage/filterindex-property/llms-full.txt

---

### Description

Gets or sets the format of the image. This is the number of the filter in the string returned through the [ImageCollection.ImportFilters](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/imagecollection/importfilters-property/llms-full.txt) property, beginning with number one. If the [ImageCollection.ImportFilters](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/imagecollection/importfilters-property/llms-full.txt) property is used to initialize the FileDialog.Filter property of a Framework dialog, the FileDialog.FilterIndex property can be used as value for this property.

### Syntax

```csharp
public int FilterIndex { get; set; }
```

```vbnet
Public Property FilterIndex As Integer
```

### Members

| Value | Description |
|---|---|
| 1 | Windows Bitmap (.BMP) |
| 2 | Tagged Image Format (.TIF) |
| 3 | Windows Metafile (.WMF) |
| 4 | Portable Network Graphics (.PNG) |
| 5 | JPEG File Interchange Format (.JPG, .JPEG) |
| 6 | Graphics Interchange Format (.GIF) |
| 7 | Windows Enhanced Metafile (.EMF) |
| 8 | Scalable Vector Graphics (.SVG) |

### Examples

The following example adds a visible handwritten-signature image to an approval field by using `SignatureImage.FilterIndex`.

```csharp
SignatureImage signatureImage = new(@"Images\alex-smith-signature.svg", 0);
SignatureField approval = new(new System.Drawing.Size(3000, 1000), "ApproverSignature", 10) { Image = signatureImage };
textControl.SignatureFields.Add(approval, FrameInsertionMode.AsCharacter);

signatureImage.FilterIndex = 1;
Console.WriteLine($"Filter Index used by Signature Image: {signatureImage.FilterIndex}");
```

```vbnet
Dim signatureImage As New SignatureImage("Images\alex-smith-signature.svg", 0)
Dim approval As New SignatureField(New System.Drawing.Size(3000, 1000), "ApproverSignature", 10) With { .Image = signatureImage }
textControl.SignatureFields.Add(approval, FrameInsertionMode.AsCharacter)

signatureImage.FilterIndex = 1
Console.WriteLine($"Filter Index used by Signature Image: {signatureImage.FilterIndex}")
```

---

## Nearby

- **Previous:** [SignatureImage.FileName Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/signatureimage/filename-property/llms-full.txt)
- **Next:** [SignatureImage.SaveMode Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/signatureimage/savemode-property/llms-full.txt)
