Show / Hide Table of Contents

Class Table

A Table is a content node that contains a grid of cells

Inheritance
object
ContentElement
ContentNode
Table
Implements
IDisposable
Inherited Members
ContentNode.GetContentNodeIterator()
ContentElement.GetTextStyledElement()
ContentElement.AsContentNode()
ContentElement.AsTextRun()
ContentElement.AsParagraph()
ContentElement.AsTableCell()
ContentElement.AsTableRow()
ContentElement.AsTable()
ContentElement.AsList()
ContentElement.AsListItem()
ContentElement.Dispose()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: pdftron.Layout
Assembly: PDFNet.dll
Syntax
public class Table : ContentNode, IDisposable

Methods

AddTableRow()

Add a new row to the table

Declaration
public TableRow AddTableRow()
Returns
Type Description
TableRow

The newly created row

Dispose(bool)

Declaration
[HandleProcessCorruptedStateExceptions]
protected override void Dispose(bool A_0)
Parameters
Type Name Description
bool A_0
Overrides
ContentNode.Dispose(bool)

~Table()

Declaration
protected ~Table()

GetBorderColor(byte*)

Get the border color of the table

Declaration
public void GetBorderColor(byte* rgb)
Parameters
Type Name Description
byte* rgb

The color values are returned as an array of 3 integers in the range * 0 to 255, inclusive

GetBorderThickness()

Get the border thickness of the table

Declaration
public double GetBorderThickness()
Returns
Type Description
double

border thickness

GetDefaultRowHeight()

Get default row height of the table

Declaration
public double GetDefaultRowHeight()
Returns
Type Description
double

Default row height of the table

GetNumColumns()

Get the number of columns in the table

Declaration
public uint GetNumColumns()
Returns
Type Description
uint

number of columns in the table

GetNumRows()

Get the number of rows in the table

Declaration
public uint GetNumRows()
Returns
Type Description
uint

number of rows in the table

GetTableCell(uint, uint)

Get a cell from the table

Declaration
public TableCell GetTableCell(uint column, uint row)
Parameters
Type Name Description
uint column

The column index of the cell to retrieve

uint row

The row index of the cell to retrieve

Returns
Type Description
TableCell

the TableCell at the specified column and row

SetBorder(double, byte, byte, byte)

Set the table's border thickness and color The color values must be between 0 and 255, otherwise an exception will be thrown

Declaration
public void SetBorder(double thickness, byte red, byte green, byte blue)
Parameters
Type Name Description
double thickness

The thickness of the border

byte red

The red component of the border color

byte green

The green component of the border color

byte blue

The blue component of the border color

SetDefaultColumnWidth(double)

Set default column weight of the table

Declaration
public void SetDefaultColumnWidth(double val)
Parameters
Type Name Description
double val

The default column weight

SetDefaultRowHeight(double)

Set default row height of the table

Declaration
public void SetDefaultRowHeight(double val)
Parameters
Type Name Description
double val

The default row height

Implements

IDisposable
In This Article
Back to top Generated by DocFX