public class XSSFTableColumn
extends java.lang.Object
XSSFTable
. Use
XSSFTable.createColumn(java.lang.String)
to create new table columns.
(XSSFTable 的表列。使用 XSSFTable.createColumn(java.lang.String) 创建新的表列。)
Modifier | Constructor and Description |
---|---|
protected |
XSSFTableColumn(XSSFTable table, org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTableColumn ctTableColumn)
Create a new table column.
(创建一个新的表列。)
|
Modifier and Type | Method and Description |
---|---|
int |
getColumnIndex()
Get the column's position in its table, staring with zero from left to right.
(获取列在其表中的位置,从左到右从零开始。)
|
long |
getId()
Get the identifier of this column, which is is unique per table.
(获取该列的标识符,每个表都是唯一的。)
|
java.lang.String |
getName()
Get the name of the column, which is is unique per table.
(获取列的名称,每个表都是唯一的。)
|
XSSFTable |
getTable()
Get the table which contains this column
(获取包含该列的表)
|
XSSFXmlColumnPr |
getXmlColumnPr()
Get the XmlColumnPr (XML column properties) if this column has an XML mapping.
(如果此列具有 XML 映射,则获取 XmlColumnPr(XML 列属性)。)
|
void |
setId(long columnId)
Set the identifier of this column, which must be unique per table.
(设置该列的标识符,每个表必须是唯一的。)
|
void |
setName(java.lang.String columnName)
Get the name of the column, which is is unique per table.
(获取列的名称,每个表都是唯一的。)
|
@Internal protected XSSFTableColumn(XSSFTable table, org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTableColumn ctTableColumn)
table
- the table which contains the column
(table - 包含列的表)
ctTableColumn
- the table column xmlbean to wrap
(ctTableColumn - 要包装的表列 xmlbean)
public XSSFTable getTable()
public long getId()
public void setId(long columnId)
columnId
- the column id
(columnId - 列 ID)
public java.lang.String getName()
public void setName(java.lang.String columnName)
columnName
- the column name
(columnName - 列名)
public XSSFXmlColumnPr getXmlColumnPr()
null
if this column has no XML mapping
(如果此列没有 XML 映射,则 XmlColumnPr 或 null)
public int getColumnIndex()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.