Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Description

...

Wiki Markup
{description}
{excerpt}Sets a [TableCell.WidthUnits|TableCell.WidthUnits] object that represents the units used for the width of a particular column.

...

Signature
C#C#
{excerpt}
{signature:C#}
 public void SetPreferredColumnWidthUnits(int column, WidthUnits units)
Signature
{signature}{signature:vb.net
vb.net
}
Public Sub SetPreferredColumnWidthUnits(ByVal column As Integer, ByVal units As WidthUnits)
Parameters

...

The column index for which to get the width units.

...

The preferred width units.

Remarks

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

{signature}
{parameters}
{param:column}The column index for which to get the width units.{param}
{param:units}The preferred width units.{param}
{remarks}MS Word equivalent: Table menu > Table properties... > Column tab > Size section > Column \#: > Measure in:

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

          //--- Set the column width units for the 3rd column to percentage
          oTable.SetPreferredWidthUnits(2, TableCell.WidthUnits.Percentage);
        
{code}
{code:vb.net
|title=vb.net
}

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

{example}
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle