How can I modify the foreground and background color of an OpenXML TableCell?

前端 未结 2 1254
粉色の甜心
粉色の甜心 2021-02-15 04:49

I\'m creating the table cell as follows:

private static TableCell GetHeaderCell(string cellText)
{
    var tc = new TableCell(new Paragraph(new Run(new Text(cell         


        
2条回答
  •  南旧
    南旧 (楼主)
    2021-02-15 05:18

    DocumentFormat.OpenXml.WordProcessingRunProperties rp = 
        new DocumentFormat.OpenXml.WordProcessingRunProperties();
    

    =

    DocumentFormat.OpenXml.WordProcessing.RunProperties rp = 
        new DocumentFormat.OpenXml.WordProcessing.RunProperties();
    

    ??

提交回复
热议问题