//水平剧中设置 excelRangeParm.HorizontalAlignment = Excel.XlHAlign.xlHAlignCenter; //垂直剧中设置 excelRangeParm.VerticalAlignment = Excel.XlVAlign.xlVAlignCenter; excelRangeParm是你选择的Range