[]
        
(Showing Draft Content)

GC.Spread.Sheets.ThemeFont

クラス: ThemeFont

Spread.Sheets.ThemeFont

Table of contents

コンストラクタ

メソッド

コンストラクタ

constructor

new ThemeFont(name, headingFont, bodyFont, headingEastAsianFont?, bodyEastAsianFont?)

テーマフォントを表します。

実例

// 次のサンプルコードは、新しいSpreadThemeオブジェクトを作成します。
var custom = new GC.Spread.Sheets.Theme("Custom");
custom.font().bodyEastAsianFont("SimSum");
sheet.currentTheme(custom);

パラメータ

名前 説明
name string テーマフォントの名前。
headingFont string 英数字用の見出しフォントの名前。
bodyFont string 英数字用の本文フォントの名前。
headingEastAsianFont? string 日本語文字用の見出しフォントの名前。
bodyEastAsianFont? string 日本語文字用の本文フォントの名前。

メソッド

bodyEastAsianFont

bodyEastAsianFont(value?): any

日本語文字用のテーマの本文フォントを取得または設定します。

実例

var custom = new GC.Spread.Sheets.Theme("Custom", "Cambria", "Calibri");
custom.font().bodyEastAsianFont("SimSum");
sheet.currentTheme(custom);

パラメータ

名前
value? string

戻り値

any

値が設定されていない場合は、テーマフォントの名前を返します。値が設定されている場合は、テーマフォントを返します。


bodyFont

bodyFont(value?): any

英数字用のテーマの本文フォントを取得または設定します。

実例

var custom = new GC.Spread.Sheets.Theme("Custom", "Cambria", "Calibri");
custom.font().bodyFont("Calibri");
sheet.currentTheme(custom);

パラメータ

名前
value? string

戻り値

any

値が設定されていない場合は、テーマフォントの名前を返します。値が設定されている場合は、テーマフォントを返します。


bodyFontScriptTypeface

bodyFontScriptTypeface(script, typeface?): any

フォントスクリプトに応じて書体を取得または設定する。

実例

var custom = new GC.Spread.Sheets.Theme("Custom");
//フォントスクリプトに応じて書体を取得します。
var typeface = custom.bodyFontScriptTypeface('Hans');
//フフォントスクリプトに応じて書体を設定します。
custom.bodyFontScriptTypeface('Hans', 'SimSum');

パラメータ

名前 説明
script string フォントスクリプトコード。
typeface? string -

戻り値

any

スクリプトのみが設定されている場合は書体を返す。それ以外の場合は書体が設定されます。


headingEastAsianFont

headingEastAsianFont(value?): any

日本語文字用の見出しフォントを取得または設定します。

実例

var custom = new GC.Spread.Sheets.Theme("Custom", "Cambria", "Calibri");
custom.font().headingEastAsianFont("SimSum");
sheet.currentTheme(custom);

パラメータ

名前
value? string

戻り値

any

値が設定されていない場合は、テーマフォントの名前を返します。値が設定されている場合は、テーマフォントを返します。


headingFont

headingFont(value?): any

英数字用の見出しフォントを取得または設定します。

実例

var custom = new GC.Spread.Sheets.Theme("Custom", "Cambria", "Calibri");
custom.font().headingFont("Calibri");
sheet.currentTheme(custom);

パラメータ

名前
value? string

戻り値

any

値が設定されていない場合は、テーマフォントの名前を返します。値が設定されている場合は、テーマフォントを返します。


headingFontScriptTypeface

headingFontScriptTypeface(script, typeface?): any

フォントスクリプトに応じて書体を取得または設定する。

実例

var custom = new GC.Spread.Sheets.Theme("Custom");
//フォントスクリプトに応じて書体を取得します。
var typeface = custom.headingFontScriptTypeface('Hans');
//フフォントスクリプトに応じて書体を設定します。
custom.headingFontScriptTypeface('Hans', 'SimSum');

パラメータ

名前 説明
script string フォントスクリプトコード。
typeface? string -

戻り値

any

スクリプトのみが設定されている場合は書体を返す。それ以外の場合は書体が設定されます。


name

name(value?): any

テーマフォントの名前を取得または設定します。

パラメータ

名前
value? string

戻り値

any

値が設定されていない場合は、テーマフォントの名前を返します。値が設定されている場合は、テーマフォントを返します。