aspose word table set BackgroundPatternColor
我在Aspose Words模板中有一个现有的表格,我想更改行内的背景图案颜色。我怎样才能实现它?aspose word table set BackgroundPatternColor
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); 
    } 
} 
以上是 aspose word table set BackgroundPatternColor 的全部内容, 来源链接: utcz.com/qa/259753.html

