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

 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}
Signature
C#C#
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}{signature:vb.net
vb.net
}
Public Property DefaultSpacing() As Integer
Remarks
By
{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
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle