日期:2014-05-20  浏览次数:20798 次

简单EXCEL问题,基本上送分
如何用程序设置一个EXCEL单元格只有上,下两条边框线

------解决方案--------------------
((Excel.Range)ThisSheet.get_Range( "B3:L3 ", System.Type.Missing).Cells).Borders[Excel.XlBordersIndex.xlEdgeTop].LineStyle = Excel.XlLineStyle.xlContinuous;

((Excel.Range)ThisSheet.get_Range( "B3:L3 ", System.Type.Missing).Cells).Borders[Excel.XlBordersIndex.xlEdgeBottom].LineStyle = Excel.XlLineStyle.xlContinuous;