org.apache.poi.xssf.usermodel.XSSFSheet.setDefaultColumnWidth()方法的使用及代码示例

x33g5p2x  于2022-02-02 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(329)

本文整理了Java中org.apache.poi.xssf.usermodel.XSSFSheet.setDefaultColumnWidth()方法的一些代码示例,展示了XSSFSheet.setDefaultColumnWidth()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSSFSheet.setDefaultColumnWidth()方法的具体详情如下:
包路径:org.apache.poi.xssf.usermodel.XSSFSheet
类名称:XSSFSheet
方法名:setDefaultColumnWidth

XSSFSheet.setDefaultColumnWidth介绍

[英]Specifies the number of characters of the maximum digit width of the normal style's font. This value does not include margin padding or extra padding for gridlines. It is only the number of characters.
[中]指定正常样式字体的最大数字宽度的字符数。该值不包括网格线的边距填充或额外填充。这只是字符数。

代码示例

代码示例来源:origin: org.apache.poi/poi-ooxml

/**
 * Set the default column width for the sheet (if the columns do not define their own width)
 * in characters
 *
 * @param width default column width measured in characters
 */
@Override
public void setDefaultColumnWidth(int width)
{
  _sh.setDefaultColumnWidth(width);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

/**
 * Set the default column width for the sheet (if the columns do not define their own width)
 * in characters
 *
 * @param width default column width measured in characters
 */
@Override
public void setDefaultColumnWidth(int width)
{
  _sh.setDefaultColumnWidth(width);
}

代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev

/**
 * Set the default column width for the sheet (if the columns do not define their own width)
 * in characters
 *
 * @param width default column width measured in characters
 */
public void setDefaultColumnWidth(int width)
{
  _sh.setDefaultColumnWidth(width);
}

代码示例来源:origin: stackoverflow.com

newSheet.setDefaultColumnWidth(oldSheet.getDefaultColumnWidth());

相关文章

微信公众号

最新文章

更多

XSSFSheet类方法