Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Description

Excerpt

Sets or returns a TableCell.WidthUnits object that represents the cell width units for this cell.

Signature
C#
C#
 public WidthUnits CellWidthUnits{ get; set; }
Signature
vb.net
vb.net
Public Property CellWidthUnits() As WidthUnits
Remarks

MS Word equivalent: Table menu > Table Properties... > Cell tab > Size section > Measure in:

Example
Code Block
csharp
csharp
titleC#

          //--- Return CellWidthUnits
          TableCell.WidthUnits widthUnits = cell.CellWidthUnits;

          //--- Set CellWidthUnits
          cell.CellWidthUnits = TableCell.WidthUnits.Auto;
        
Code Block
vb.net
vb.net
titlevb.net

          '--- Return CellWidthUnits
          Dim widthUnits As TableCell.WidthUnits = cell.CellWidthUnits

          '--- Set CellWidthUnits
          cell.CellWidthUnits = TableCell.WidthUnits.Auto