SpreadJS Documentation
padding Method
The padding for the comment.
Gets or sets the padding for the comment.
Syntax
var instance = new GcSpread.Sheets.Comment();
var returnValue; // Type: Padding
returnValue = instance.padding(value);
function padding( 
   value : Padding
) : Padding;

Parameters

value
The padding for the comment.

Return Value

The padding for the comment.
Example
This example uses the padding method.
var comment = new GcSpread.Sheets.Comment();
comment.text("new comment!");
comment.backColor("yellow");
comment.foreColor("green");
comment.displayMode(GcSpread.Sheets.DisplayMode.AlwaysShown);
comment.padding(new GcSpread.Sheets.Padding(2, 2, 2, 2));
activeSheet.setComment(5,5,comment);
See Also

Reference

Comment class

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.