[]
        
(Showing Draft Content)

GC.Spread.Sheets.ButtonPosition

枚举: ButtonPosition

Spread.Sheets.ButtonPosition

指定cellbutton的位置

代码示例

//本示例设置了cellbutton的位置
//创建配置
leftButtonConfig1 = {
    caption: "left",
    enabled: true,
    position: GC.Spread.Sheets.ButtonPosition.right,
    visibility:GC.Spread.Sheets.ButtonVisibility.always,
};
rightButtonConfig1 = {
    caption: "left",
    enabled: true,
    position: GC.Spread.Sheets.ButtonPosition.left,
    visibility:GC.Spread.Sheets.ButtonVisibility.onSelected,
};
//创建样式
var style = new GC.Spread.Sheets.Style();
style.cellButtons=[
     leftButtonConfig1,
     rightButtonConfig1
];
sheet.setStyle(0, 0, style);

Table of contents

枚举值成员

枚举值成员

left

left = 0

cellbutton位于单元格的左侧


right = 1

cellbutton位于单元格的右侧