Skip to end of metadata
Go to start of metadata

Description

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

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

Remarks

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

Examples

C#

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

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

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

          '--- Set CellWidthUnits
          cell.CellWidthUnits = TableCell.WidthUnits.Auto
        
  • No labels