【发布时间】:2011-08-30 11:03:27
【问题描述】:
将 Open XML for Excel 与 DocumentFormat.OpenXml.Spreadsheet 一起使用,如何仅将部分文本设置为粗体?
var cell = new Cell {
//DataType = CellValues.InlineString,
CellReference = "A" + 1
};
// TODO: Set "bold text" to bold style
//var inlineString = new InlineString();
//inlineString.AppendChild(new Text { Text = "Normal text... bold text..." });
//cell.AppendChild(inlineString);
注释掉现在使用但应该或可能应该更改的代码。
【问题讨论】:
标签: c# excel openxml openxml-sdk