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

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)

Signature
C#
C#
 public int Padding{ get; set; }
Signature
vb.net
vb.net
Public Property Padding() As Integer
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

Example
Code Block
csharp
csharp
titleC#

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

          //--- Set Padding to 4 points
          brdr.Padding = 80;
        
Code Block
vb.net
vb.net
titlevb.net

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

          '--- Set Padding to 4 points
          brdr.Padding = 80