# Watermark

## Content

You can display a watermark in an empty cell.

![](https://gcdocumentsitekrblob.blob.core.windows.net/document-site-files/images/8d606653-16a0-474d-b9dc-e2b4d01c2446/images/waterm.png)

Create a [Style](/spreadjs/api/v17/classes/GC.Spread.Sheets.Style) object and set the [watermark](/spreadjs/api/v17/classes/GC.Spread.Sheets.Style#watermark) property. Use the [setStyle](/spreadjs/api/v17/classes/GC.Spread.Sheets.Worksheet#setStyle) method to apply the style to a cell, row, or column.

Text will not overflow into a cell that contains a watermark.

The following code saample displays a watermark in cell B1 and B2.

```javascript
var type = new GC.Spread.Sheets.Style();
type.watermark = "User name";
sheet.setStyle(0, 1, type);

var type = new GC.Spread.Sheets.Style();
type.watermark = "Password";
sheet.setStyle(1, 1, type);
```