# GC.Spread.Sheets.Comments.CommentState

## Content

# Enumeration: CommentState

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

Defines the comment state.

**`example`**
```javascript
//This example gets the comment state.
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);
alert(comment.commentState());
```

## Table of contents

### Enumeration members

- [active](GC.Spread.Sheets.Comments.CommentState#active)
- [edit](GC.Spread.Sheets.Comments.CommentState#edit)
- [normal](GC.Spread.Sheets.Comments.CommentState#normal)

## Enumeration members

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

• **active** = `1`

Specifies that the comment is in an active state.
In the active state, the comment is currently being selected.
User can move the comment's position or resize the comment.

___

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

• **edit** = `2`

Specifies that the comment is in an editing state.
The edit state of an comment signifies that the comment is actively being modified or updated.
This state occurs when a user is making changes to the content of the comment.

___

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

• **normal** = `3`

Specifies that the comment is in a normal state.
In the normal state, the comment is currently not being selected.
User cannot interact with a comment in normal state.
Clicking on the comment will change the state into active or edit.
