Spread.Sheets
name メソッド
名前。
カラースキームの名前を取得または設定します。
シンタックス
Javascript (Usage) 
var instance = new GC.Spread.Sheets.ColorScheme(name,
                                               background1,
                                               background2,
                                               text1,
                                               text2,
                                               accent1,
                                               accent2,
                                               accent3,
                                               accent4,
                                               accent5,
                                               accent6,
                                               link,
                                               followedLink);
var returnValue; // Type: any
returnValue = instance.name(value);
Javascript (Specification) 
function name( 
   value : string
) : any;

パラメータ

value
名前。

戻り値の型

値が設定されていない場合は、名前を返します。値が設定されている場合は、カラースキームを返します。
使用例
次のサンプルコードは、テーマ名を設定します。
var ntheme = new GC.Spread.Sheets.Theme("customThemeColor");
ntheme.colors().accent1("lightgreen");
ntheme.colors().name("green theme");
activeSheet.currentTheme(ntheme);
activeSheet.getCell(0, 0).backColor("accent 1");

関連トピック

参照

ColorScheme タイプ

 

 


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