Java org.apache.poi.xwpf.usermodel XWPFTable fields, constructors, methods, implement or subclass

Example usage for Java org.apache.poi.xwpf.usermodel XWPFTable fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.poi.xwpf.usermodel XWPFTable.

The text is from its open source code.

Constructor

Method

voidaddRow(XWPFTableRow row)
add a new Row to the table
XWPFTableRowcreateRow()
create a new XWPFTableRow object with as many cells as the number of columns defined in that moment
IBodygetBody()
CTTblgetCTTbl()
intgetNumberOfRows()
XWPFTableRowgetRow(int pos)
XWPFTableRowgetRow(CTRow row)
returns the XWPFRow which belongs to the CTRow row if this row is not existing in the table null will be returned
ListgetRows()
StringgetStyleID()
get the StyleID of the table
StringgetText()
Convenience method to extract text in cells.
intgetWidth()
Get the width value as an integer.
XWPFTableRowinsertNewTableRow(int pos)
inserts a new tablerow
booleanremoveRow(int pos)
Remove a row at position pos from the table
voidsetCellMargins(int top, int left, int bottom, int right)
voidsetColBandSize(int size)
voidsetInsideHBorder(XWPFBorderType type, int size, int space, String rgbColor)
Set Inside horizontal borders for a table
voidsetInsideVBorder(XWPFBorderType type, int size, int space, String rgbColor)
Set Inside Vertical borders for table
voidsetRowBandSize(int size)
voidsetWidth(int width)
Set the width in 20ths of a point (twips).
voidsetWidth(String widthValue)
Set the width to the value "auto", an integer value (20ths of a point), or a percentage ("nn.nn%").