首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

简单EXCEL有关问题,基本上送分

2012-03-07 
简单EXCEL问题,基本上送分如何用程序设置一个EXCEL单元格只有上,下两条边框线[解决办法]((Excel.Range)Thi

简单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;

热点排行