---
title: "GifWriter.BackgroundIndex Property "
canonical: https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Codecs_GifWriter_BackgroundIndex.htm
product: "Graphics Mill"
---

# GifWriter.BackgroundIndex Property 
 
Gets or sets an index of the background color.
 
**Namespace:** [Aurigma.GraphicsMill.Codecs](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Codecs.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public int BackgroundIndex { get; set; }
```
 
### Property Value
An index in the global palette for the background color. The default value is -1.
 
## Remarks
 Using this property you can also disable background. To do this, pass -1.
   
## See Also

### Reference

- [GifWriter Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_GifWriter.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Codecs.htm.md)
