SpreadJS製品ヘルプ
borderWidth メソッド
GC.Spread.Sheets.Comments 名前空間 > Comment クラス : borderWidth メソッド
コメントの境界線の幅。
コメントの境界線の幅を取得または設定します。
シンタックス
var instance = new GC.Spread.Sheets.Comments.Comment(text);
var returnValue; // Type: any
returnValue = instance.borderWidth(value);
function borderWidth( 
   value : number
) : any;

パラメータ

value
コメントの境界線の幅。

戻り値の型

値が設定されていない場合は、コメントの境界線の幅を返します。値が設定されている場合は、コメントを返します。
使用例
次のサンプルコードは、borderWidthメソッドを設定します。
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.borderWidth(2);
comment.borderStyle("dotted");
comment.borderColor("red");
activeSheet.getCell(5,5).comment(comment);
activeSheet.suspendPaint();
activeSheet.resumePaint();
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.borderWidth(2);
comment.borderStyle("dotted");
comment.borderColor("red");
activeSheet.getCell(5,5).comment(comment);
activeSheet.suspendPaint();
activeSheet.resumePaint();
関連トピック

参照

Comment クラス