UNICHAR
返回由给定数值引用的 Unicode 字符。
语法
expression.UNICHAR(arg1);
expression - 表示 ApiWorksheetFunction 类的变量。
参数
| 名称 | 必需/可选 | 数据类型 | 默认值 | 描述 |
|---|---|---|---|---|
| arg1 | 必需 | ApiRange | ApiName | number | 表示字符的 Unicode 编号。 |
返回值
string
示例
此示例演示如何返回由给定数值引用的 Unicode 字符。
// How to get a Unicode character.
// Use a function to return the Unicode character knowing its reference number.
let worksheet = Api.GetActiveSheet();
let func = Api.WorksheetFunction;
worksheet.GetRange("A1").SetValue(func.UNICHAR(378));