Page tree

Versions Compared

Key

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

...

Wiki Markup
{introducedin:4.1.0.1331

...

Description

Excerpt

Returns a double that represents the preferred width of this cell, with the associated units return in units.

Signature
C#C#
}
{description}
{excerpt}
Returns a double that represents the preferred width of this cell, with the associated units return in [units|#param-units].
{excerpt}
{signature:C#}
public double GetPreferredWidth(out Units units)
Signature
{signature}
{signature:vb.net
vb.net
}
Public Function GetPreferredWidth(ByRef units As Units) As Double
Parameters

{returns}
{example}
{code:csharp|title=C#}
Units units;
double width = table.GetPreferredWidth(out units);
{code}
{code:vb.net
|title=vb.net
}
Dim units As Units
Dim width As Double = table.GetPreferredWidth(units)
{code}

{example}
Param
unitsunitsThe units for the width.
MS Word equivalent: Table menu > Table
{signature}

{parameters}
{param:units}
The [units|Units] for the width.
MS Word equivalent: Table menu > Table Properties... > Table tab > Options... > Measure
in
Returns
The preferred width of the table.
MS Word equivalent: Table menu > Table
 in
{param}
{returns}
The preferred width of the table.
MS Word equivalent: Table menu > Table Properties... > Table tab > Options... > dropdown after "Preferred width"
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle