var instance = new GC.Spread.Sheets.Comments.Comment(text);
function Comment;
var instance = new GC.Spread.Sheets.Comments.Comment(text);
function Comment;
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); comment.autoSize(true); activeSheet.getCell(5,5).comment(comment);
Object
GC.Spread.Sheets.Comments.Comment
Name | Description | |
---|---|---|
Comment Constructor | Represents a comment. |
Name | Description | |
---|---|---|
autoSize | Gets or sets whether the comment automatically sizes based on its content. | |
backColor | Gets or sets the background color of the comment. | |
borderColor | Gets or sets the border color for the comment. | |
borderStyle | Gets or sets the border style for the comment. | |
borderWidth | Gets or sets the border width for the comment. | |
commentState | Gets or sets the state of the comment. | |
displayMode | Gets or sets the display mode for the comment. | |
dynamicMove | Gets or sets whether the comment dynamically moves. | |
dynamicSize | Gets or sets whether the comment is dynamically sized. | |
fontFamily | Gets or sets the font family for the comment. | |
fontSize | Gets or sets the font size for the comment. Valid value is numbers followed by "pt" (required), such as "12pt". | |
fontStyle | Gets or sets the font style of the comment. | |
fontWeight | Gets or sets the font weight for the comment. | |
foreColor | Gets or sets the text color for the comment. | |
height | Gets or sets the height of the comment. | |
horizontalAlign | Gets or sets the horizontal alignment of the comment. | |
location | Gets or sets the location of the comment. | |
locked | Gets or sets the locked setting for the comment. | |
lockText | Gets or sets the locked text for the comment. | |
opacity | Gets or sets the opacity of the comment. | |
padding | Gets or sets the padding for the comment. | |
showShadow | Gets or sets whether the comment displays a shadow. | |
text | Gets or sets the text of the comment. | |
textDecoration | Gets or sets the text decoration for the comment. | |
width | Gets or sets the width of the comment. | |
zIndex | Gets or sets the z-index of the comment. |