logo
  • 教程列表
  • SO官方文档
  • 列和行
    • 自动调整列
    • 隐藏列和行
    • 调整行和列的大小
    • 复制列或行
  1. StackOverflow 文档
  2. epplus 教程
  3. 列和行
  4. 调整行和列的大小

调整行和列的大小

Created: November-22, 2018

//Set the row "A" height to 15
double rowHeight = 15;
worksheet.Row(1).Height = rowHeight;

//Set the column 1 width to 50
double columnWidth = 50;
worksheet.Column(1).Width = columnWidth;

当 Bestfit 设置为 true 时,当用户在单元格中输入数字时,该列将变宽

worksheet.Column(1).BestFit = true;
  • 复制列或行
  • 隐藏列和行

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 关于我们
  • 免责声明