我在 Aspose Words 模板中有一个现有表格,我想更改行内的背景图案颜色。我怎样才能实现它?
public static void SetColor(ref Table table)
{
Row row =table.Rows[1];
}
public static void SetColor(ref Table table)
{
Row t = table.Rows[1];
foreach (Cell c in t.GetChildNodes(NodeType.Cell, true))
{
c.CellFormat.Shading.BackgroundPatternColor = Color.FromArgb(198, 217, 241);
}
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句