SimpleExcelWriterAddRowAt(Int32, String) 方法

新建一行,在第 position 列(1 起)放 contents,其余列均为空字符串,无边框。 例如 AddRowAt(3, "标题") 生成一行:["", "", "标题"]。

Definition

命名空间: Suresking.Utility
程序集: Suresking.Utility (在 Suresking.Utility.dll 中) 版本:1.3.22+a27276bb8ffde055e69ff608e98aafba279e1e99
C#
public void AddRowAt(
	int position,
	string? content
)

参数

position  Int32
目标列位置(1 起);小于 1 时按 1 处理。
content  String
该列内容;为 null 时写为空字符串。

备注

生成的行总长度为 position,前面 position-1 列为空字符串。 常用于插入标题行后配合 AddMerge(Int32, Int32, Boolean) 做整行合并。

参见