private static void SetTableStyle(Microsoft.Office.Interop.PowerPoint.Table pTable)
{ if (pTable != null) { for (int i = 0; i < pTable.Rows.Count; i++) { for (int j = 0; j < pTable.Columns.Count; j++) { pTable.Cell(i + 1, j + 1).Shape.TextFrame.TextRange.Font.Size = 9; pTable.Cell(i + 1, j + 1).Shape.TextFrame.TextRange.Font.NameAscii = "Arial"; pTable.Cell(i + 1, j + 1).Shape.TextFrame.TextRange.Font.NameFarEast = "微软雅黑"; pTable.Cell(i + 1, j + 1).Shape.TextFrame.TextRange.Font.Bold = MsoTriState.msoFalse; pTable.Cell(i + 1, j + 1).Shape.TextFrame.TextRange.Font.Color.RGB = 0 + 0 * 256 + 0 * 256 * 256; pTable.Cell(i + 1, j + 1).Shape.TextFrame.TextRange.ParagraphFormat.Alignment = Microsoft.Office.Interop.PowerPoint.PpParagraphAlignment.ppAlignCenter; pTable.Cell(i + 1, j + 1).Shape.TextFrame.HorizontalAnchor = MsoHorizontalAnchor.msoAnchorCenter; pTable.Cell(i + 1, j + 1).Shape.TextFrame.VerticalAnchor = MsoVerticalAnchor.msoAnchorMiddle;}
} } else { return; } }