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
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)

Signature
C#
C#
<table class="diff-macro"><thead><tr><th class="diff-macro-title">unmigrated-wiki-markup</th></tr></thead><tbody><tr><td class="diff-macro-body"><pre>
 public int DefaultSpacing{ get; set; }
</pre></td></tr></tbody></table>
Signature
vb.net
vb.net
<p>Public Property DefaultSpacing() As Integer</p>
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

Example
Code Block
csharp
csharp
titleC#

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

          //--- Set DefaultSpacing to 1/2 inch
          oTableFormatting.DefaultSpacing = 720;
        
Code Block
vb.net
vb.net
titlevb.net

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

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