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

パラメータ

value
コメントのフォントファミリー。

戻り値の型

値が設定されていない場合は、コメントのフォントファミリーを返します。値が設定されている場合は、コメントを返します。
使用例
次のサンプルコードは、fontFamilyメソッドを使用します。
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.fontFamily("Comic Sans MS");
comment.fontSize("10pt");
activeSheet.getCell(5,5).comment(comment);
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.fontFamily("Comic Sans MS");
comment.fontSize("10pt");
activeSheet.getCell(5,5).comment(comment);
関連トピック

参照

Comment クラス