# GC.Spread.Sheets.AutoFitType

## Content

# Enumeration: AutoFitType

[Spread](../modules/GC.Spread).[Sheets](../modules/GC.Spread.Sheets).AutoFitType

Represents whether the component automatically resizes cells or headers.

**`example`**
```
//This example uses the AutoFitType enumeration.
spread.options.autoFitType = GC.Spread.Sheets.AutoFitType.cellWithHeader;
```

## Table of contents

### Enumeration members

- [cell](GC.Spread.Sheets.AutoFitType#cell)
- [cellWithHeader](GC.Spread.Sheets.AutoFitType#cellwithheader)

## Enumeration members

### <a id="cell" name="cell"></a> cell

• **cell** = `0`

 The component autofits cells.

___

### <a id="cellwithheader" name="cellwithheader"></a> cellWithHeader

• **cellWithHeader** = `1`

  The component autofits cells and headers.
