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 a TableCell.WidthUnits object that represents the units used for the width of a particular column.

Signature
C#
C#
 public void SetPreferredColumnWidthUnits(int column, WidthUnits units)
Signature
vb.net
vb.net
Public Sub SetPreferredColumnWidthUnits(ByVal column As Integer, ByVal units As WidthUnits)
Parameters
Param
column
column

The column index for which to get the width units.

Param
units
units

The preferred width units.

Remarks

MS Word equivalent: Table menu > Table properties... > Column tab > Size section > Column #: > Measure in:

Example
Code Block
csharp
csharp
titleC#

          //--- Set the column width units for the 3rd column to percentage
          oTable.SetPreferredWidthUnits(2, TableCell.WidthUnits.Percentage);
        
Code Block
vb.net
vb.net
titlevb.net

          '--- Set the column width units for the 3rd column to percentage
          oTable.SetPreferredWidthUnits(2, TableCell.WidthUnits.Percentage)