public class XSSFCellAlignment
extends java.lang.Object
Constructor and Description |
---|
XSSFCellAlignment(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCellAlignment cellAlignment)
Creates a Cell Alignment from the supplied XML definition
|
Modifier and Type | Method and Description |
---|---|
org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCellAlignment |
getCTCellAlignment()
Access to low-level data
(访问低级数据)
|
HorizontalAlignment |
getHorizontal()
Get the type of horizontal alignment for the cell
(获取单元格的水平对齐类型)
|
long |
getIndent()
Get the number of spaces to indent the text in the cell
(获取单元格中文本缩进的空格数)
|
ReadingOrder |
getReadingOrder()
Get the reading order for the cell
(获取单元格的阅读顺序)
|
boolean |
getShrinkToFit() |
long |
getTextRotation()
Get the degree of rotation for the text in the cell
(获取单元格中文本的旋转度数)
|
VerticalAlignment |
getVertical()
Get the type of vertical alignment for the cell
(获取单元格的垂直对齐类型)
|
boolean |
getWrapText()
Whether the text should be wrapped
(文本是否应该换行)
|
void |
setHorizontal(HorizontalAlignment align)
Set the type of horizontal alignment for the cell
(设置单元格的水平对齐类型)
|
void |
setIndent(long indent)
Set the number of spaces to indent the text in the cell
(设置单元格中文本缩进的空格数)
|
void |
setReadingOrder(ReadingOrder order)
Set the type of reading order for the cell
(设置单元格的阅读顺序类型)
|
void |
setShrinkToFit(boolean shrink) |
void |
setTextRotation(long rotation)
Set the degree of rotation for the text in the cell
(设置单元格中文本的旋转度数)
|
void |
setVertical(VerticalAlignment align)
Set the type of vertical alignment for the cell
(设置单元格的垂直对齐类型)
|
void |
setWrapText(boolean wrapped)
Set whether the text should be wrapped
(设置文本是否应该换行)
|
public XSSFCellAlignment(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCellAlignment cellAlignment)
cellAlignment
- The low-level XML definition of the cell alignment
(cellAlignment - 单元格对齐的低级 XML 定义)
public VerticalAlignment getVertical()
VerticalAlignment
public void setVertical(VerticalAlignment align)
align
- - the type of alignment
(align - - 对齐类型)
VerticalAlignment
public HorizontalAlignment getHorizontal()
HorizontalAlignment
public void setHorizontal(HorizontalAlignment align)
align
- - the type of alignment
(align - - 对齐类型)
HorizontalAlignment
public void setReadingOrder(ReadingOrder order)
order
- - the type of reading order
(order - - 阅读顺序的类型)
ReadingOrder
public ReadingOrder getReadingOrder()
ReadingOrder
public long getIndent()
public void setIndent(long indent)
indent
- - number of spaces
(缩进 - - 空格数)
public long getTextRotation()
Expressed in degrees. Values range from 0 to 180. The first letter of the text is considered the center-point of the arc.
For 0 - 90, the value represents degrees above horizon. For 91-180 the degrees below the horizon is calculated as:
[degrees below horizon] = 90 - textRotation.
public void setTextRotation(long rotation)
Expressed in degrees. Values range from 0 to 180. The first letter of the text is considered the center-point of the arc.
For 0 - 90, the value represents degrees above horizon. For 91-180 the degrees below the horizon is calculated as:
[degrees below horizon] = 90 - textRotation.
rotation
- - the rotation degrees (between 0 and 180 degrees)
(rotation - - 旋转度数(0 到 180 度之间))
public boolean getWrapText()
public void setWrapText(boolean wrapped)
wrapped
- a boolean value indicating if the text in a cell should be line-wrapped within the cell.
(Wrapped - 一个布尔值,指示单元格中的文本是否应在单元格内换行。)
public boolean getShrinkToFit()
public void setShrinkToFit(boolean shrink)
@Internal public org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCellAlignment getCTCellAlignment()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.