Foxit PDF SDK
foxit.addon.TableCellData Class Reference

Inherits SystemIDisposable.

Public Member Functions

 TableCellData ()
 Constructor.

 
 TableCellData (RichTextStyle cell_text_style, string cell_text, Image cell_image, RectF cell_margin)
 Constructor, with parameters.
More...
 
 TableCellData (TableCellData data)
 Constructor, with another table cell data object.
More...
 
void Set (RichTextStyle cell_text_style, string cell_text, Image cell_image, RectF cell_margin)
 Set value.
More...
 

Properties

Imagecell_image [get, set]
 The image content of cell.

More...
 
RectFcell_margin [get, set]
 The cell margin between the content and cell border.
More...
 
string cell_text [get, set]
 The text content of cell.
More...
 
RichTextStylecell_text_style [get, set]
 The style of cell text.

 

Detailed Description

This class represents table cell data.

Constructor & Destructor Documentation

◆ TableCellData() [1/2]

foxit.addon.TableCellData.TableCellData ( RichTextStyle  cell_text_style,
string  cell_text,
Image  cell_image,
RectF  cell_margin 
)
inline

Constructor, with parameters.

Parameters
[in]cell_text_styleThe style of cell text.
[in]cell_textThe text content of cell.
[in]cell_imageThe image content of cell.
[in]cell_marginThe cell margin.

◆ TableCellData() [2/2]

foxit.addon.TableCellData.TableCellData ( TableCellData  data)
inline

Constructor, with another table cell data object.

Parameters
[in]dataAnother table cell data object, whose value would be assigned to current object.

Member Function Documentation

◆ Set()

void foxit.addon.TableCellData.Set ( RichTextStyle  cell_text_style,
string  cell_text,
Image  cell_image,
RectF  cell_margin 
)
inline

Set value.

Parameters
[in]cell_text_styleThe style of cell text.
[in]cell_textThe text content of cell.
[in]cell_imageThe image content of cell.
[in]cell_marginThe cell margin.
Returns
None.

Property Documentation

◆ cell_image

Image foxit.addon.TableCellData.cell_image
getset

The image content of cell.

Note
Currently, it is not supported for text and image to exist in the same cell. For merged cells, their contents is text or image which is set in the first merged cell.

◆ cell_margin

RectF foxit.addon.TableCellData.cell_margin
getset

The cell margin between the content and cell border.

Note
This value does not represent a rectangle. It just defines the left margin, bottom margin, right margin and top margin of a table cell. The value should not be negative.

◆ cell_text

string foxit.addon.TableCellData.cell_text
getset

The text content of cell.

Note
Currently, it is not supported for text and image to exist in the same cell. For merged cells, their contents is text or image which is set in the first merged cell.