Persits Software, Inc. Web Site
 Navigator:  Home |  Object Reference |  PdfTable
  PdfTable Object
PdfTable represents a table. An instance of the PdfTable object is creatable via PdfDocument's CreateTable method. For more information about tables, see Chapter 7 - Tables.

Properties Methods


At(Row As Long, Column As Long) As PdfCell (Read-only)

Returns a PdfCell object representing a table cell specified by its Row and Column. This is the default parameterized property.

Border As Single (Read/Write)

Returns or specifies the table's outer border. By default, the value is 0 which means the table has no outer border.

ColNum As Long (Read-only)

Returns the number of columns in the table.

Font As PdfFont (Read/Write)

Specifies the current default font for this table to be used when the Cell.AddText method is called without a Font argument.

Height As Single (Read-only)

Returns the table height.

RowNum As Long (Read-only)

Returns the number of rows in the table.

Rows As PdfRows (Read-only)

Returns the PdfRows collection of PdfRow objects representing the table's individual rows.

Width As Single (Read-only)

Returns the table width.

Sub SetColor (Param As Variant)
Specifies a border or background color for this table in a color space other than RGB. Param is a PdfParam object or parameter string specifying various color parameters, including:
  • Type (required) - specifies which color is to be modified. The valid values are: 1 (border color), 2 (cell border color), 3 (background color) and 4 (cell background color).
  • ColorSpace (required) - specifies the color space index. This value should be obtained from the Index property of the PdfColorSpace object.
  • c1, c2, ..., cN (required) - specify the individual color components for the color. These values must be in the range [0, 1] and the number of color components must match the color space being used.

This method was introduced in Version 2.7.

For more information, see Section 15.4 - Using Color Spaces with PdfTable and Other Objects.


  This site is owned and maintained by Persits Software, Inc. Copyright © 2003 - 2013. All Rights Reserved.