Page tree

Versions Compared

Key

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

...

Wiki Markup
{description}
{excerpt}Sets an {{int}} that represents the default table cell margin at a particular location. One twip = \(1/20 pt\) or \(1/1440 in\)

...

Signature
C#C#
{excerpt}
{signature:C#}
 public void SetDefaultPadding(Location location, int value)
Signature
{signature}{signature:vb.net
vb.net
}
Public Sub SetDefaultPadding(ByVal location As Location, ByVal value As Integer)
Parameters

...

A TableCell.Location object that represents the location at which to set the margin.

...

An int that represents the default table cell margin at a particular location in twips.

Remarks

Allowed locations are Top, Left, Bottom, and Right, which refer to the default margins for those sides of a table cell.

By default, Top and Bottom are set to 0", and Left and Right are set to 0.08".

Word equivalent: Table menu > Table Properties... > Table tab > Options... button > Default cell margins section

{signature}
{parameters}
{param:location}A [TableCell.Location|TableCell.Location] object that represents the location at which to set the margin.{param}
{param:value}An {{int}} that represents the default table cell margin at a particular location in twips.{param}
{remarks}Allowed locations are Top, Left, Bottom, and Right, which refer to the default margins for those sides of a table cell.

By default, Top and Bottom are set to 0", and Left and Right are set to 0.08".

Word equivalent: Table menu > Table Properties... > Table tab > Options... button > Default cell margins section

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

          //--- Set DefaultPadding for Left margin to 1 inch
          oTableFormatting.SetDefaultPadding(TableCell.Location.Left, 1440);
        
{code}
{code:vb.net
|title=vb.net
}

          '--- Set DefaultPadding for Left margin to 1 inch
          oTableFormatting.SetDefaultPadding(TableCell.Location.Left, 1440)
        {code}

{example}
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle