Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
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|#param-units].
{excerpt}
{signature:C#}
public double GetPreferredWidth(out Units units)
{signature}
{signature:vb.net}
Public Function GetPreferredWidth(ByRef units As Units) As Double
{signature}

{parameters}
{param:units}
The [units|Units] for the width.
MS Word equivalent: Table menu > Table Properties... > Table tab > Options... > Measure in
{param}
{returns}
The preferred width of the table.
MS Word equivalent: Table menu > Table Properties... > Table tab > Options... > dropdown after "Preferred width"
{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}