# Text Display in the Sheet Corner

Explore how to set text using the SheetCorner properties and see the general style of the sheet corner.

## Content

You can add text to the sheet corner cell of the spreadsheet by setting the [Cells](/spreadnet/api/latest/online-win/FarPoint.Win.Spread/FarPoint.Win.Spread.SheetCorner.Cells.html) property of [SheetCorner](/spreadnet/api/latest/online-win/FarPoint.Win.Spread/FarPoint.Win.Spread.SheetCorner.html) class or overriding the **PaintCell** method. The figure shows the results of the example code in this topic.
![Sheet corner with text](https://cdn.mescius.io/document-site-files/images/2238e618-a1fb-45a6-9ce5-9a4157bd2931/images/sheetcorner-text.png)
For information about setting text using the **SheetCorner** properties, see [General Style of the Sheet Corner](/spreadnet/docs/latest/online-win/overview/spwin-devguide/spwin-ssobject-header/spwin-sheetcorner/spwin-sheetcorner-style).

## Using Code

You can assign text to the sheet corner cell by overriding the painting of the cell and painting it with the specified text.

## Example

```csharp
class CornerCell : FarPoint.Win.Spread.CellType.GeneralCellType
{
   public override void PaintCell(Graphics g, Rectangle r, FarPoint.Win.Spread.Appearance appearance, object value, bool isSelected, bool isLocked, float zoomFactor)
   {
      base.PaintCell(g, r, appearance, "Text", isSelected, isLocked, zoomFactor);
   }
}

CornerCell sctextcell = new CornerCell();
fpSpread1.Sheets[0].SheetCornerStyle.CellType = sctextcell;
```

```vbnet
Public Class SheetCorner
Inherits FarPoint.Win.Spread.CellType.GeneralCellType
   Public Overrides Sub PaintCell(ByVal g As System.Drawing.Graphics, ByVal r As System.Drawing.Rectangle, ByVal appearance As FarPoint.Win.Spread.Appearance, ByVal value As Object, ByVal isSelected As Boolean, ByVal isLocked As Boolean, ByVal zoomFactor As Single)
      MyBase.PaintCell(g, r, appearance, "Text", isSelected, isLocked, zoomFactor)
   End Sub
End Class

Dim sctextcell As New SheetCorner()
fpSpread1.Sheets(0).SheetCornerStyle.CellType = sctextcell
```

## See Also

[General Style of the Sheet Corner](/spreadnet/docs/latest/online-win/overview/spwin-devguide/spwin-ssobject-header/spwin-sheetcorner/spwin-sheetcorner-style)
[Table Display in the Sheet Corner](/spreadnet/docs/latest/online-win/overview/spwin-devguide/spwin-ssobject-header/spwin-sheetcorner/spwin-sheetcorner-table)
[Customizable Cell in the Sheet Corner](/spreadnet/docs/latest/online-win/overview/spwin-devguide/spwin-ssobject-header/spwin-sheetcorner/spwin-sheetcorner-custcells)
[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)