Page tree

Versions Compared

Key

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

Excerpt

Returns a boolean that represents whether or not this table's width will be set automatically by Word.

 text{info}

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

          boolean autoWidth = oTableFormatting.AutoWidth;
        
{code}
{code:vb.net
|title=vb.net
}

          Dim autoWidth As Boolean = oTableFormatting.AutoWidth
        {code}

{example}
Signature
C#C#
Wiki Markup
{description}
{excerpt}Returns a {{boolean}} that represents whether or not this table's width will be set automatically by Word.{excerpt}
{signature:C#}
 public boolean AutoWidth{ get; set; }
Signature
{signature}{signature:vb.net
vb.net
}
Public Property AutoWidth() As Boolean
Remarks
MS Word
{signature}
{remarks}MS Word equivalent: Table menu > Table Properties... > Table tab > Options... > Automatically resize to fit contents

{info
}You will have to call {{[table.SetPreferredColumnWidthUnits(i,TableCell.WidthUnits.Auto)|Table.SetPreferredColumnWidthUnits(Int32, TableCell.WidthUnits)]}} to have each column adjusted to fit the
text
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle