How can a border be set around multiple cells in excel using C#

后端 未结 8 1505
无人共我
无人共我 2020-12-18 22:18

I am working on a project that creates excel files.

I am having trouble placing a border on multiple cells to organize the excel file.

Let\'s say I want a b

8条回答
  •  温柔的废话
    2020-12-18 22:52

    You need to individually set these

    .Borders[Excel.XlBordersIndex.xlEdgeBottom] 
    .Borders[Excel.XlBordersIndex.xlEdgeRight]
    .Borders[Excel.XlBordersIndex.xlEdgeLeft]  
    .Borders[Excel.XlBordersIndex.xlEdgeTop]
    

提交回复
热议问题