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

  • 關於本站
  • 免責聲明