跳到主要内容

TableWidth

宽度属性的单位可能值由特定的表格或表格单元格宽度属性定义。 -「auto」 - 将表格或表格单元格宽度设置为自动宽度。 -「twips」 - 将表格或表格单元格宽度设置为以缇为单位测量。 -「nul」 - 将表格或表格单元格宽度设置为零值。 -「percent」 - 将表格或表格单元格宽度设置为相对于父容器的百分比。

类型

枚举

  • "auto"
  • "twips"
  • "nul"
  • "percent"

示例

This example sets the width of the table cell equal to 100 points (2000 twips).

// How to change a table cell width using twips.

// Resize a cell by setting its width to 2000 twips.

tableCell.SetWidth("twips", 2000);