[]
        
(Showing Draft Content)

GC.Spread.Sheets.Comments.Padding

类: Padding

Sheets.Comments.Padding

Table of contents

构造方法

构造方法

constructor

new Padding(top?, right?, bottom?, left?)

边距信息

代码示例

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}

参数

属性名 类型 说明
top? number 上边距
right? number 右边距
bottom? number 下边距
left? number 左边距