# Customizable Cell in the Sheet Corner

Learn how to customize single cells or tables of cells in the sheet corner using Spread, including setting cell types and properties of the Cell class.

## Content

The single cell or table of cells in the sheet corner can be customized. You can set the cells to any of the cell types that are supported by Spread. You can also customize properties of the [Cell](/spreadnet/api/latest/online-win/FarPoint.Win.Spread/FarPoint.Win.Spread.Cell.html) class.
You can change the cell type of the cells in the sheet corner by setting a new cell type for the [SheetCornerStyle](/spreadnet/api/latest/online-win/FarPoint.Win.Spread/FarPoint.Win.Spread.SheetView.SheetCornerStyle.html) property of the sheet ([SheetView](/spreadnet/api/latest/online-win/FarPoint.Win.Spread/FarPoint.Win.Spread.SheetView.html) class). When you set the SheetCornerStyle.CellType, all the cells in the sheet corner are changed to that type.
The following examples set the sheet corner to be a check box or a button.
**Example**
![Spreadsheet with sheet corners set as check boxes](https://cdn.mescius.io/document-site-files/images/2238e618-a1fb-45a6-9ce5-9a4157bd2931/images/spwincornercell.png)
The following code sets the sheet corner to be check box cells by setting the sheet corner style (as shown in the preceding illustration).

```csharp
fpSpread1.ActiveSheet.AllowTableCorner = true;
fpSpread1.ActiveSheet.SheetCorner.ColumnCount = 4;
fpSpread1.ActiveSheet.SheetCorner.RowCount = 5;
fpSpread1.ActiveSheet.SheetCornerStyle.CellType = new FarPoint.Win.Spread.CellType.CheckBoxCellType();
```

```vbnet
fpSpread1.ActiveSheet.AllowTableCorner = True
fpSpread1.ActiveSheet.SheetCorner.ColumnCount = 4
fpSpread1.ActiveSheet.SheetCorner.RowCount = 5
fpSpread1.ActiveSheet.SheetCornerStyle.CellType = New FarPoint.Win.Spread.CellType.CheckBoxCellType()
```

**Example**
![Spreadsheet with sheet corners set as buttons](https://cdn.mescius.io/document-site-files/images/2238e618-a1fb-45a6-9ce5-9a4157bd2931/images/spwinbcornercell.png)
The following code sets the sheet corner to be button cells by assigning the button cell type to the cells in the sheet corner (as shown in the preceding illustration).

```csharp
fpSpread1.ActiveSheet.AllowTableCorner = true;
fpSpread1.ActiveSheet.SheetCorner.ColumnCount = 4;
fpSpread1.ActiveSheet.SheetCorner.RowCount = 5;
fpSpread1.ActiveSheet.SheetCorner.Cells[2,3].CellType = new FarPoint.Win.Spread.CellType.ButtonCellType();
```

```vbnet
fpSpread1.ActiveSheet.AllowTableCorner = True
fpSpread1.ActiveSheet.SheetCorner.ColumnCount = 4
fpSpread1.ActiveSheet.SheetCorner.RowCount = 5
fpSpread1.ActiveSheet.SheetCorner.Cells(2,3).CellType = New FarPoint.Win.Spread.CellType.ButtonCellType()
```

## See Also

[General Style of the Sheet Corner](/spreadnet/docs/latest/online-win/overview/spwin-devguide/spwin-ssobject-header/spwin-sheetcorner/spwin-sheetcorner-style)
[Text Display in the Sheet Corner](/spreadnet/docs/latest/online-win/overview/spwin-devguide/spwin-ssobject-header/spwin-sheetcorner/spwin-sheetcorner-text)
[Table Display in the Sheet Corner](/spreadnet/docs/latest/online-win/overview/spwin-devguide/spwin-ssobject-header/spwin-sheetcorner/spwin-sheetcorner-table)
[Cell Spans in the Sheet Corner](/spreadnet/docs/latest/online-win/overview/spwin-devguide/spwin-ssobject-header/spwin-sheetcorner/spwin-sheetcorner-spans)
[Header Count Synchronization in the Sheet Corner](/spreadnet/docs/latest/online-win/overview/spwin-devguide/spwin-ssobject-header/spwin-sheetcorner/spwin-sheetcorner-headercount)
[Drawing (Rendering) Style](/spreadnet/docs/latest/online-win/overview/spwin-devguide/spwin-ssobject-header/spwin-sheetcorner/spwin-sheetcorner-renderstyle)