github文档: https://github.com/ClosedXML/ClosedXML using ClosedXML.Excel; using System; using System.Collections.Generic; using System.Linq; var wb = new XLWorkbook(); var ws = wb.Worksheets.Add("Adjust To Contents"); // Set some values with different font sizes ws.Cell(1, 1).Value = ...