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
Wiki Markup
{description}
{excerpt}Sets or returns a [TableCell.WidthUnits|TableCell.WidthUnits] object that represents the cell width units for this cell.{excerpt}
{signature:C#}
 public WidthUnits CellWidthUnits{ get; set; }
{signature}{signature:vb.net}
Public Property CellWidthUnits() As WidthUnits
{signature}
{remarks}MS Word equivalent: Table menu > Table Properties... > Cell tab > Size section > Measure in:

{remarks}
{example}{code:csharp|title=C#}

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

          //--- Set CellWidthUnits
          cell.CellWidthUnits = TableCell.WidthUnits.Auto;
        {code}
{code:vb.net|title=vb.net}

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

          '--- Set CellWidthUnits
          cell.CellWidthUnits = TableCell.WidthUnits.Auto
        {code}

{example}