Returns an int that represents this table cell margin at a particular location in twips. One twip = (1/20 pt) or (1/1440 in)

 public int GetPadding(Location location)
Public Function GetPadding(ByVal location As Location) As Integer

A TableCell.Location object that represents ths location of the margin.

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

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... > Cell tab > Options... button > Cell margins section


          //--- Return Padding for Left margin
          int padding = cell.GetPadding(TableCell.Location.Left);
        

          '--- Return Padding for Left margin
          Dim padding As Integer = cell.GetPadding(TableCell.Location.Left)