Spread.Sheets
textDecoration メソッド
コメントのテキスト装飾。
コメントのテキスト装飾を取得または設定します。
シンタックス
Javascript (Usage) 
var instance = new GC.Spread.Sheets.Comments.Comment(text);
var returnValue; // Type: any
returnValue = instance.textDecoration(value);
Javascript (Specification) 
function textDecoration( 
   value : TextDecorationType
) : any;

パラメータ

value
コメントのテキスト装飾。

戻り値の型

値が設定されていない場合は、コメントのテキスト装飾を返します。値が設定されている場合は、コメントを返します。
使用例
次のサンプルコードは、textDecorationメソッドを使用します。
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.textDecoration(GC.Spread.Sheets.TextDecorationType.underline);
activeSheet.getCell(5,5).comment(comment);
activeSheet.suspendPaint();
activeSheet.resumePaint();

関連トピック

参照

Comment クラス

 

 


© 2016-2018, GrapeCity inc. All rights reserved.