Class TableCell
Inherited Members
Namespace: pdftron.Layout
Assembly: PDFTronDotNet.dll
Syntax
public class TableCell : ContentNode
Constructors
TableCell(IntPtr, object)
Declaration
public TableCell(IntPtr impl, object reference)
Parameters
| Type | Name | Description |
|---|---|---|
| IntPtr | impl | |
| object | reference |
Methods
AddParagraph()
Adds an empty paragraph to the cell.
Declaration
public Paragraph AddParagraph()
Returns
| Type | Description |
|---|---|
| Paragraph | The paragraph that was added. |
AddParagraph(string)
Adds a 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()
Adds a nested table to the cell.
Declaration
public Table AddTable()
Returns
| Type | Description |
|---|---|
| Table | The table that was added. |
GetBorderThickness()
Gets the border thickness of the table cell.
Declaration
public double GetBorderThickness()
Returns
| Type | Description |
|---|---|
| double | The border thickness of the table cell. |
GetHeight()
Gets the height of the cell.
Declaration
public double GetHeight()
Returns
| Type | Description |
|---|---|
| double | The height of the cell. |
GetHorizontalAlignment()
Gets the horizontal alignment of the cell.
Declaration
public TableCell.CellAlignmentHorizontal GetHorizontalAlignment()
Returns
| Type | Description |
|---|---|
| TableCell.CellAlignmentHorizontal | The horizontal alignment of the cell. |
GetVerticalAlignment()
Gets the vertical alignment of the cell.
Declaration
public TableCell.CellAlignmentVertical GetVerticalAlignment()
Returns
| Type | Description |
|---|---|
| TableCell.CellAlignmentVertical | The vertical alignment of the cell. |
GetWidth()
Gets the width of the cell.
Declaration
public double GetWidth()
Returns
| Type | Description |
|---|---|
| double | The width of the cell. |
MergeCellsDown(uint)
Merges the cell with the specified number of cells downwards.
Declaration
public TableCell MergeCellsDown(uint num)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | num | The number of cells to merge. |
Returns
| Type | Description |
|---|---|
| TableCell | The merged cell. |
MergeCellsRight(uint)
Merges the cell with the specified number of cells to the right.
Declaration
public TableCell MergeCellsRight(uint num)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | num | The number of cells to merge. |
Returns
| Type | Description |
|---|---|
| TableCell | The merged cell. |
SetBackgroundColor(byte, byte, byte)
Sets the background color of the cell.
Declaration
public void SetBackgroundColor(byte red, byte green, byte blue)
Parameters
| Type | Name | Description |
|---|---|---|
| byte | red | The red component of the background color. |
| byte | green | The green component of the background color. |
| byte | blue | The blue component of the background color. |
SetBorder(double, byte, byte, byte)
Sets the cell's border thickness and color.
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)
Sets the height of the cell.
Declaration
public void SetHeight(double val)
Parameters
| Type | Name | Description |
|---|---|---|
| double | val |
SetHorizontalAlignment(CellAlignmentHorizontal)
Sets the horizontal alignment of the cell.
Declaration
public void SetHorizontalAlignment(TableCell.CellAlignmentHorizontal val)
Parameters
| Type | Name | Description |
|---|---|---|
| TableCell.CellAlignmentHorizontal | val |
SetVerticalAlignment(CellAlignmentVertical)
Sets the vertical alignment of the cell.
Declaration
public void SetVerticalAlignment(TableCell.CellAlignmentVertical val)
Parameters
| Type | Name | Description |
|---|---|---|
| TableCell.CellAlignmentVertical | val |
SetWidth(double)
Sets the width of the cell.
Declaration
public void SetWidth(double val)
Parameters
| Type | Name | Description |
|---|---|---|
| double | val |