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}{signature:
}
Signature
vb.net
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#}
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} {code:
Code Block
vb.net
|title=
vb.net
titlevb.net
}


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

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