How set height row in excel with NPOI?

≯℡__Kan透↙ 提交于 2019-12-13 14:54:05

问题


How set height row in c# with NPOI?

To specify the width of the columns I'm using XSSFSheet.SetColumnWidth, but what does the command for the height of the cells look like?


回答1:


The height of the row is the same: XSSFSheet.GetRow(index).Heigh {get;set;}




回答2:


try below approach

var row = sheet.CreateRow(0);
row.Height = 10 ;    
//Or     
sheet.GetRow(1).Height = 10;


来源:https://stackoverflow.com/questions/46147969/how-set-height-row-in-excel-with-npoi

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!