本文整理了Java中org.apache.poi.xssf.usermodel.XSSFTable.findColumnIndex()
方法的一些代码示例,展示了XSSFTable.findColumnIndex()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSSFTable.findColumnIndex()
方法的具体详情如下:
包路径:org.apache.poi.xssf.usermodel.XSSFTable
类名称:XSSFTable
方法名:findColumnIndex
[英]Gets the relative column index of a column in this table having the header name column
. The column index is relative to the left-most column in the table, 0-indexed. Returns -1
if column
is not a header name in table. Column Header names are case-insensitive Note: this function caches column names for performance. To flush the cache (because columns have been moved or column headers have been changed), #updateHeaders() must be called.
[中]获取此表中标题名为[$0$]的列的相对列索引。列索引相对于表中最左边的列0索引。如果column
不是表中的标题名,则返回-1
。列标题名称不区分大小写注意:此函数缓存列名以提高性能。要刷新缓存(因为列已被移动或列标题已被更改),必须调用#updateHeaders()。
代码示例来源:origin: org.apache.poi/poi-ooxml
/**
* Get the column's position in its table, staring with zero from left to
* right.
*
* @return the column index
* @since 4.0.0
*/
public int getColumnIndex() {
return table.findColumnIndex(getName());
}
代码示例来源:origin: org.apache.poi/poi-ooxml
@Deprecated
@Removal(version="4.2")
public XSSFXmlColumnPr(XSSFTable table, CTTableColumn ctTableColum, CTXmlColumnPr ctXmlColumnPr) {
this.table = table;
this.tableColumn = table.getColumns().get(table.findColumnIndex(ctTableColum.getName()));
this.ctXmlColumnPr = ctXmlColumnPr;
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi
/**
* Get the column's position in its table, staring with zero from left to
* right.
*
* @return the column index
* @since 4.0.0
*/
public int getColumnIndex() {
return table.findColumnIndex(getName());
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi
@Deprecated
@Removal(version="4.2")
public XSSFXmlColumnPr(XSSFTable table, CTTableColumn ctTableColum, CTXmlColumnPr ctXmlColumnPr) {
this.table = table;
this.tableColumn = table.getColumns().get(table.findColumnIndex(ctTableColum.getName()));
this.ctXmlColumnPr = ctXmlColumnPr;
}
内容来源于网络,如有侵权,请联系作者删除!