Show / Hide Table of Contents

Class TableCell

A class representing a table cell, which can be used during document creation.

Inheritance
object
ContentElement
ContentNode
TableCell
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 TableCell : ContentNode, IDisposable

Methods

AddParagraph()

Add an empty paragraph to the cell

Declaration
public Paragraph AddParagraph()
Returns
Type Description
Paragraph

The paragraph that was added

AddParagraph(string)

Add an paragraph with text to the cell

Declaration
public Paragraph AddParagraph(string text)
Parameters
Type Name Description
string text

The text to add

Returns
Type Description
Paragraph

The paragraph that was added

AddTable()

Add an nested table to the cell

Declaration
public Table AddTable()
Returns
Type Description
Table

The table that was added

Dispose(bool)

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

~TableCell()

Declaration
protected ~TableCell()

GetBackgroundColor(byte*)

Get the background color of the cell

Declaration
public void GetBackgroundColor(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

GetBorderColor(byte*)

Get the border color of the table cell

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 cell

Declaration
public double GetBorderThickness()
Returns
Type Description
double

border thickness

GetHeight()

Get the height of the cell

Declaration
public double GetHeight()
Returns
Type Description
double

the height of the cell

GetHorizontalAlignment()

Get the horizontal alignment of the cell

Declaration
public TableCell.CellAlignmentHorizontal GetHorizontalAlignment()
Returns
Type Description
TableCell.CellAlignmentHorizontal

the horizontal alignment of the cell

GetVerticalAlignment()

Get the vertical alignment of the cell

Declaration
public TableCell.CellAlignmentVertical GetVerticalAlignment()
Returns
Type Description
TableCell.CellAlignmentVertical

the vertical alignment of the cell

GetWidth()

Get the width of the cell

Declaration
public double GetWidth()
Returns
Type Description
double

the width of the cell

MergeCellsDown(uint)

Merge the cell with the specified number of cells downwards

Declaration
public TableCell MergeCellsDown(uint num)
Parameters
Type Name Description
uint num

number of cells to be merged

Returns
Type Description
TableCell

The merged cell

MergeCellsRight(uint)

Merge the cell with the specified number of cells to the right

Declaration
public TableCell MergeCellsRight(uint num)
Parameters
Type Name Description
uint num

number of cells to be merged

Returns
Type Description
TableCell

The merged cell

SetBackgroundColor(byte, byte, byte)

Set the background color of the cell The color values must be between 0 and 255, otherwise an exception will be thrown.

Declaration
public void SetBackgroundColor(byte red, byte green, byte blue)
Parameters
Type Name Description
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

SetBorder(double, byte, byte, byte)

Set the cell'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

SetHeight(double)

Set the height of the cell

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

The height of the cell

SetHorizontalAlignment(CellAlignmentHorizontal)

Set the horizontal alignment of the cell

Declaration
public void SetHorizontalAlignment(TableCell.CellAlignmentHorizontal val)
Parameters
Type Name Description
TableCell.CellAlignmentHorizontal val

The horizontal alignment of the cell

SetVerticalAlignment(CellAlignmentVertical)

Set the vertical alignment of the cell

Declaration
public void SetVerticalAlignment(TableCell.CellAlignmentVertical val)
Parameters
Type Name Description
TableCell.CellAlignmentVertical val

The vertical alignment of the cell

SetWidth(double)

Set the width of the cell

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

The width of the cell

Implements

IDisposable
In This Article
Back to top Generated by DocFX