SetHeight
设置当前表格行的高度。
语法
expression.SetHeight(nValue);
expression - 表示 ApiTableRow 类的变量。
参数
| 名称 | 必需/可选 | 数据类型 | 默认值 | 描述 |
|---|---|---|---|---|
| nValue | 可选 | EMU | 以英制单位表示的行高。 |
返回值
此方法不返回任何数据。
示例
此示例设置表格行的高度。
// How to set a height of the row.
// Create a table and change its rows height.
const presentation = Api.GetPresentation();
const slide = presentation.GetSlideByIndex(0);
const table = Api.CreateTable(2, 4);
const row = table.GetRow(0);
row.SetHeight(30 * 36000);
slide.RemoveAllObjects();
slide.AddObject(table);