Foxit PDF SDK
foxit.addon.tablegenerator.TableCellData类 参考

继承自 SystemIDisposable .

Public 成员函数

 TableCellData ()
 构造函数。
 
 TableCellData (RichTextStyle cell_text_style, uint cell_fill_color, string cell_text, Image cell_image, RectF cell_margin)
 构造函数,带参数。 更多...
 
 TableCellData (TableCellData data)
 拷贝构造函数。 更多...
 
void Set (RichTextStyle cell_text_style, uint cell_fill_color, string cell_text, Image cell_image, RectF cell_margin)
 设置值。 更多...
 

属性

uint cell_fill_color [get, set]
 单元格的填充颜色。格式:0xAARRGGBB。
 
Imagecell_image [get, set]
 单元格的图像内容。 更多...
 
RectFcell_margin [get, set]
 内容与单元格边框之间的单元格边距。 更多...
 
string cell_text [get, set]
 单元格的文本内容。 更多...
 
RichTextStylecell_text_style [get, set]
 单元格文本样式。
 

详细描述

此类表示表格单元格数据。

构造及析构函数说明

◆ TableCellData() [1/2]

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

构造函数,带参数。

参数
[in]cell_text_style单元格文本样式。
[in]cell_fill_color单元格的填充颜色。格式:0xAARRGGBB。
[in]cell_text单元格的文本内容。
[in]cell_image单元格的图像内容。
[in]cell_margin单元格边距。

◆ TableCellData() [2/2]

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

拷贝构造函数。

参数
[in]data另一个表格单元格数据对象,其值将被赋给当前对象。

成员函数说明

◆ Set()

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

设置值。

参数
[in]cell_text_style单元格文本样式。
[in]cell_fill_color单元格的填充颜色。格式:0xAARRGGBB。
[in]cell_text单元格的文本内容。
[in]cell_image单元格的图像内容。
[in]cell_margin单元格边距。
返回
无。

属性说明

◆ cell_image

Image foxit.addon.tablegenerator.TableCellData.cell_image
getset

单元格的图像内容。

注解
目前不支持文本和图像在同一单元格中同时存在。 对于合并的单元格,其内容是在第一个合并单元格中设置的文本或图像。

◆ cell_margin

RectF foxit.addon.tablegenerator.TableCellData.cell_margin
getset

内容与单元格边框之间的单元格边距。

注解
此值不表示矩形。它只定义表格单元格的左边距、下边距、 右边距和上边距。该值不应为负,也不应大于单元格的高度或宽度。

◆ cell_text

string foxit.addon.tablegenerator.TableCellData.cell_text
getset

单元格的文本内容。

注解
目前不支持文本和图像在同一单元格中同时存在。 对于合并的单元格,其内容是在第一个合并单元格中设置的文本或图像。