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}Returns 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 WidthUnits GetPreferredColumnWidthUnits(int column)
Signature
{signature}{signature:vb.net
vb.net
}
Public Function GetPreferredColumnWidthUnits(ByVal column As Integer) As WidthUnits
Parameters

...

An int representing the column index for which to get the width units.

Returns

A TableCell.WidthUnits object representing the units used at the specified column index.

Remarks

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

{signature}
{parameters}
{param:column}An {{int}} representing the column index for which to get the width units.{param}
{returns}A {{TableCell.WidthUnits}} object representing the units used at the specified column index.{returns}
{remarks}MS Word equivalent: Table menu > Table properties... > Column tab > Size section > Column \#: > Measure in:

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

          //--- Get the column width units for the 3rd column
          TableCell.WidthUnits oCellWidthUnits =
               oTable.GetPreferredColumnWidthUnits(2);
        
{code}
{code:vb.net
|title=vb.net
}

          '--- Get the column width units for the 3rd column
          Dim oCellWidthUnits As TableCell.WidthUnits = _
               oTable.GetPreferredColumnWidthUnits(2)
        {code}

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