Class DOCXTcPr
- All Implemented Interfaces:
ICTElement
Table Cell Properties Definition.
Represents w:tcPr in xml.
- Author:
- Jamson Chan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.openxmlformats.schemas.wordprocessingml.x2006.main.CTCnfReturns the Table Cell Conditional Formatting.org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTcPrgetCT()Returns the CT object of current element.Returns the grid span.org.openxmlformats.schemas.wordprocessingml.x2006.main.STMerge.EnumReturns the horizontal merge.Returns the parent table cell.org.openxmlformats.schemas.wordprocessingml.x2006.main.CTShdgetShd()Returns the shading of the cell.Returns the table cell borders.org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTcMargetTcMar()Returns the single table cell margins.org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblWidthgetTcW()Returns the width of the cell.org.openxmlformats.schemas.wordprocessingml.x2006.main.STTextDirection.EnumReturns the cell text flow direction.org.openxmlformats.schemas.wordprocessingml.x2006.main.STVerticalJc.EnumReturns the vertical alignment of the cell.org.openxmlformats.schemas.wordprocessingml.x2006.main.CTVMergeReturns the vertical merge.booleanReturns whether to hide the end of cell marker in row height calculation.booleanisNoWrap()Returns whether to wrap the cell content.booleanReturns whether to fit text within cell.voidsetCnfStyle(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTCnf cnfStyle) Sets the Table Cell Conditional Formatting.voidsetGridSpan(Integer gridSpan) Sets the grid span.voidsetHideMark(boolean hideMark) Sets whether to hide the end of cell marker in row height calculation.voidsetHMerge(org.openxmlformats.schemas.wordprocessingml.x2006.main.STMerge.Enum hMerge) Sets the horizontal merge.voidsetNoWrap(boolean noWrap) Sets whether to wrap the cell content.voidSets the parent table cell.voidsetShd(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTShd shd) Sets the shading of the cell.voidsetTcBorders(DOCXTcBorders tcBorders) Sets the table cell borders.voidsetTcFitText(boolean tcFitText) Sets whether to fit text within cell.voidsetTcMar(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTcMar tcMar) Sets the single table cell margins.voidsetTcW(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblWidth tcW) Sets the width of the cell.voidsetTextDirection(org.openxmlformats.schemas.wordprocessingml.x2006.main.STTextDirection.Enum textDirection) Sets the cell text flow direction.voidsetVAlign(org.openxmlformats.schemas.wordprocessingml.x2006.main.STVerticalJc.Enum vAlign) Sets the vertical alignment of the cell.voidsetVMerge(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTVMerge vMerge) Sets the vertical merge.
-
Constructor Details
-
DOCXTcPr
Create a new TableCellProperties by given CTTcPr.- Parameters:
tcPr- the CTTcPr object.parent- the parent TableCell object.
-
-
Method Details
-
getCT
public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTcPr getCT()Description copied from interface:ICTElementReturns the CT object of current element.- Specified by:
getCTin interfaceICTElement
-
getParent
Returns the parent table cell.- Returns:
- the parent table cell.
-
setParent
Sets the parent table cell.- Parameters:
parent- the parent table cell.
-
getCnfStyle
public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTCnf getCnfStyle()Returns the Table Cell Conditional Formatting.Represents the following element tag in the schema:
w:cnfStyle.- Returns:
- the Table Cell Conditional Formatting.
-
setCnfStyle
public void setCnfStyle(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTCnf cnfStyle) Sets the Table Cell Conditional Formatting.Represents the following element tag in the schema:
w:cnfStyle.- Parameters:
cnfStyle- the Table Cell Conditional Formatting.
-
getGridSpan
Returns the grid span.Represents the following element tag in the schema:
w:gridSpan.- Returns:
- the grid span.
-
setGridSpan
Sets the grid span.Represents the following element tag in the schema:
w:gridSpan.- Parameters:
gridSpan- the grid span.
-
isHideMark
public boolean isHideMark()Returns whether to hide the end of cell marker in row height calculation.Represents the following element tag in the schema:
w:hideMark.- Returns:
- whether to hide the end of cell marker in row height calculation.
-
setHideMark
public void setHideMark(boolean hideMark) Sets whether to hide the end of cell marker in row height calculation.Represents the following element tag in the schema:
w:hideMark.- Parameters:
hideMark- whether to hide the end of cell marker in row height calculation.
-
getHMerge
public org.openxmlformats.schemas.wordprocessingml.x2006.main.STMerge.Enum getHMerge()Returns the horizontal merge.Represents the following element tag in the schema:
w:hMerge.- Returns:
- the horizontal merge.
-
setHMerge
public void setHMerge(org.openxmlformats.schemas.wordprocessingml.x2006.main.STMerge.Enum hMerge) Sets the horizontal merge.Represents the following element tag in the schema:
w:hMerge.- Parameters:
hMerge- the horizontal merge.
-
isNoWrap
public boolean isNoWrap()Returns whether to wrap the cell content.Represents the following element tag in the schema:
w:noWrap.- Returns:
- whether to wrap the cell content.
-
setNoWrap
public void setNoWrap(boolean noWrap) Sets whether to wrap the cell content.Represents the following element tag in the schema:
w:noWrap.- Parameters:
noWrap- whether to wrap the cell content.
-
getShd
public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTShd getShd()Returns the shading of the cell.Represents the following element tag in the schema:
w:shd.- Returns:
- the shading of the cell.
-
setShd
public void setShd(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTShd shd) Sets the shading of the cell.Represents the following element tag in the schema:
w:shd.- Parameters:
shd- the shading of the cell.
-
getTcBorders
Returns the table cell borders.Represents the following element tag in the schema:
w:tcBorders.- Returns:
- the table cell borders.
-
setTcBorders
Sets the table cell borders.Represents the following element tag in the schema:
w:tcBorders.- Parameters:
tcBorders- the table cell borders.
-
isTcFitText
public boolean isTcFitText()Returns whether to fit text within cell.Represents the following element tag in the schema:
w:tcFitText.- Returns:
- whether to fit text within cell.
-
setTcFitText
public void setTcFitText(boolean tcFitText) Sets whether to fit text within cell.Represents the following element tag in the schema:
w:tcFitText.- Parameters:
tcFitText- whether to fit text within cell.
-
getTcMar
public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTcMar getTcMar()Returns the single table cell margins.Represents the following element tag in the schema:
w:tcMar.- Returns:
- the single table cell margins.
-
setTcMar
public void setTcMar(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTcMar tcMar) Sets the single table cell margins.Represents the following element tag in the schema:
w:tcMar.- Parameters:
tcMar- the single table cell margins.
-
getTcW
public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblWidth getTcW()Returns the width of the cell.Represents the following element tag in the schema:
w:tcW.- Returns:
- the width of the cell.
-
setTcW
public void setTcW(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblWidth tcW) Sets the width of the cell.Represents the following element tag in the schema:
w:tcW.- Parameters:
tcW- the width of the cell.
-
getTextDirection
public org.openxmlformats.schemas.wordprocessingml.x2006.main.STTextDirection.Enum getTextDirection()Returns the cell text flow direction.Represents the following element tag in the schema:
w:textDirection.- Returns:
- the cell text flow direction.
-
setTextDirection
public void setTextDirection(org.openxmlformats.schemas.wordprocessingml.x2006.main.STTextDirection.Enum textDirection) Sets the cell text flow direction.Represents the following element tag in the schema:
w:textDirection.- Parameters:
textDirection- the cell text flow direction.
-
getVAlign
public org.openxmlformats.schemas.wordprocessingml.x2006.main.STVerticalJc.Enum getVAlign()Returns the vertical alignment of the cell.Represents the following element tag in the schema:
w:vAlign.- Returns:
- the vertical alignment of the cell.
-
setVAlign
public void setVAlign(org.openxmlformats.schemas.wordprocessingml.x2006.main.STVerticalJc.Enum vAlign) Sets the vertical alignment of the cell.Represents the following element tag in the schema:
w:vAlign.- Parameters:
vAlign- the vertical alignment of the cell.
-
getVMerge
public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTVMerge getVMerge()Returns the vertical merge.Represents the following element tag in the schema:
w:vMerge.- Returns:
- the vertical merge.
-
setVMerge
public void setVMerge(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTVMerge vMerge) Sets the vertical merge.Represents the following element tag in the schema:
w:vMerge.- Parameters:
vMerge- the vertical merge.
-