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}Sets or returns an {{int}} that represents the space to maintain between the border and the text in twips. One twip = \(1/20 pt\) or \(1/1440 in\){excerpt}
{signature:C#}
 public int Padding{ get; set; }
{signature}{signature:vb.net}
Public Property Padding() As Integer
{signature}
{remarks}The minimum width is 0 points and the maximum width is 32 points. Values beyond these will be automatically adjusted.

MS Word equivalent: Format menu > Borders and Shading... > Borders tab > Options button > From text

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

          //--- Get Padding
          int padding = brdr.Padding;

          //--- Set Padding to 4 points
          brdr.Padding = 80;
        {code}
{code:vb.net|title=vb.net}

          '--- Get Padding
          Dim padding As Integer = brdr.Padding

          '--- Set Padding to 4 points
          brdr.Padding = 80
        {code}

{example}