# GC.Spread.Sheets.Comments.DisplayMode

## Content

# Enumeration: DisplayMode

[Sheets](../modules/GC.Spread.Sheets).[Comments](../modules/GC.Spread.Sheets.Comments).DisplayMode

Defines when the comment is displayed.

**`example`**
```javascript
//This example uses the DisplayMode enumeration.
var comment = new GC.Spread.Sheets.Comments.Comment();
comment.text("new comment!");
comment.backColor("yellow");
comment.foreColor("green");
comment.displayMode(GC.Spread.Sheets.Comments.DisplayMode.alwaysShown);
activeSheet.getCell(5,5).comment(comment);
```

## Table of contents

### Enumeration members

- [alwaysShown](GC.Spread.Sheets.Comments.DisplayMode#alwaysshown)
- [hoverShown](GC.Spread.Sheets.Comments.DisplayMode#hovershown)

## Enumeration members

### <a id="alwaysshown" name="alwaysshown"></a> alwaysShown

• **alwaysShown** = `1`

 Specifies that the comment is always displayed.

___

### <a id="hovershown" name="hovershown"></a> hoverShown

• **hoverShown** = `2`

 Specifies that the comment is displayed only when the pointer hovers over the comment's owner cell.
