aspose word table 设置 BackgroundPatternColor

aspose word table set BackgroundPatternColor

我在 Aspose Words 模板中已有 table,我想更改行内的背景图案颜色。我怎样才能实现它?

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);
     }
}