Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Wiki Markup
{description}
{excerpt}Returns or sets an {{int}} that represents the default spacing between a table's cells that has this formatting. This is the distance in twips between the edge of a cell and the center of its border with an adjacent cell. One twip = \(1/20 pt\) or \(1/1440 in\){excerpt}
{signature:C#}
 public int DefaultSpacing{ get; set; }
{signature}{signature:vb.net}
Public Property DefaultSpacing() As Integer
{signature}
{remarks}By default, this is set to zero \(0\) for a new table.

Word equivalent: Table menu > Table Properties... > Table tab > Options... button > Default cell spacing section > Allow spacing between cells

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

          //--- Return DefaultSpacing
          int defaultSpacing = oTableFormatting.DefaultSpacing;

          //--- Set DefaultSpacing to 1/2 inch
          oTableFormatting.DefaultSpacing = 720;
        {code}
{code:vb.net|title=vb.net}

          '--- Return DefaultSpacing
          Dim defaultSpacing As Integer = oTableFormatting.DefaultSpacing

          '--- Set DefaultSpacing to 1/2 inch
          oTableFormatting.DefaultSpacing = 720
        {code}

{example}