Excel.Interfaces.CultureInfoData interface
一个描述通过调用 cultureInfo.toJSON()返回的数据的接口。
属性
| datetime |
定义区域上适当的日期和时间显示格式。 这基于当前的系统区域性设置。 |
| name | 获取格式为 languagecode2-country/regioncode2 的区域性名称 (例如“zh-CN”或“en-us”) 。 这基于当前系统设置。 |
| number |
定义数字显示的适当文化格式。 这基于当前的系统区域性设置。 |
属性详细信息
datetimeFormat
定义区域上适当的日期和时间显示格式。 这基于当前的系统区域性设置。
datetimeFormat?: Excel.Interfaces.DatetimeFormatInfoData;
属性值
注解
name
获取格式为 languagecode2-country/regioncode2 的区域性名称 (例如“zh-CN”或“en-us”) 。 这基于当前系统设置。
name?: string;
属性值
string
注解
numberFormat
定义数字显示的适当文化格式。 这基于当前的系统区域性设置。
numberFormat?: Excel.Interfaces.NumberFormatInfoData;