[]
• new Padding(top?, right?, bottom?, left?)
表示内边距信息。
example
var comment = activeSheet.comments.add(2, 2, 'this is a comment');
comment.displayMode(GC.Spread.Sheets.Comments.DisplayMode.alwaysShown)
console.log(comment.padding()); // undefined
comment.padding(new GC.Spread.Sheets.Comments.Padding(10, 20, 30, 40));
console.log(comment.padding()); // Padding {top: 10, right: 20, bottom: 30, left: 40}
| Name | Type | Description |
|---|---|---|
top? |
number |
上内边距。 |
right? |
number |
右内边距。 |
bottom? |
number |
下内边距。 |
left? |
number |
左内边距。 |