我目前正在使用类似这样的方法在单元格中插入内联字符串:
new Cell()
{
CellReference = "E2",
StyleIndex = (UInt32Value)4U,
DataType = CellValues.InlineString,
InlineString = new InlineString(new Text( "some text"))
}
但是\n
不能插入换行符,我该怎么办?
响应
new Cell(
new CellValue("string \n string")
)
{
CellReference = "E2",
StyleIndex = (UInt32Value)4U,
DataType = CellValues.String
}
CellFormat
对象或Alignment
对象应用于给定单元格? - Panzercrisis