var instance = new GC.Spread.Common.CultureInfo(); var value; // Type: string value = instance.name();
function name() : string;
戻り値の型
CultureInfoの名前 //次のサンプルコードは、新しいCultureInfoを追加および取得します。 let cultureInfo = new GC.Spread.Common.CultureInfo(); cultureInfo.id = 0x407; cultureInfo.NumberFormat.numberDecimalSeparator = ","; cultureInfo.NumberFormat.numberGroupSeparator = "."; cultureInfo.NumberFormat.listSeparator = ""; cultureInfo.name = function () { return "de-DE"; }; GC.Spread.Common.CultureManager.addCultureInfo(cultureInfo.name(), cultureInfo); console.log(cultureInfo === GC.Spread.Common.CultureManager.getCultureInfo("de-DE"));//出力: true