new PdfTable()
A PdfTable is an object that represents a table element within a Pdf A PdfTable can reside within a PdfSection, PdfHeader or PdfFooter. [NON-INSTANTIABLE]
MEMBERS
-
bottomBorderColor :Color
-
The color of the bottom border in this PdfTable.
- Default Value:
- Color(0,0,0,1)
-
bottomBorderThickness :number
-
The thickness of the bottom border in this PdfTable.
- Default Value:
- 10
-
diagonalDownColor :Color
-
The color of the diagonalDown (top left to bottom right diagonal) in this PdfTable.
- Default Value:
- Color(1,1,1,1)
-
diagonalDownThickness :number
-
The thickness of the diagonalDown (top left to bottom right diagonal) in this PdfTable.
- Default Value:
- 0
-
diagonalUpColor :Color
-
The thickness of the diagonalUp (top right to bottom left diagonal) in this PdfTable.
- Default Value:
- Color(1,1,1,1)
-
diagonalUpThickness :number
-
The thickness of the diagonalUp (top right to bottom left diagonal) in this PdfTable.
- Default Value:
- 0
-
inheritedTypes :object
-
Dictionary object listing all of the types this object is compatible with.
-
leftBorderColor :Color
-
The color of the left border in this PdfTable.
- Default Value:
- Color(0,0,0,1)
-
leftBorderThickness :number
-
The thickness of the left border in this PdfTable.
- Default Value:
- 10
-
readonly numColumns :number
-
The number of columns for each row in this PdfTable.
- Default Value:
- 0
-
rightBorderColor :Color
-
The color of the right border in this PdfTable.
- Default Value:
- Color(0,0,0,1)
-
rightBorderThickness :number
-
The thickness of the right border in this PdfTable.
- Default Value:
- 10
-
rows :Array.<PdfRow>
-
An array containing the PdfRows that reside in this PdfTable.
- Default Value:
- []
-
topBorderColor :Color
-
The color of the top border in this PdfTable.
- Default Value:
- Color(0,0,0,1)
-
topBorderThickness :number
-
The thickness of the top border in this PdfTable.
- Default Value:
- 10
-
readonly totalWidth :number
-
The total width of this PdfTable. This value is derived by adding up each column width in the table.
- Default Value:
- 0
-
type :string
-
Type identifier.
METHODS
-
addRow()
-
Adds a PdfRow to this PdfTable.
-
getCell(row, column) returns {PdfCell|undefined}
-
Returns the PdfCell at the given row and column if it exists.
Parameters:
Name Type Attributes Default Description row
number column
number -
setBorder(thickness, color)
-
Sets the thickness and color for all borders in this PdfTable.
Parameters:
Name Type Attributes Default Description thickness
number The thickness to set all borders to.
color
Color The color to set all borders to.