Skip to end of metadata
Go to start of metadata

Description

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)

C#
 public int Padding{ get; set; }
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

Examples

C#

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

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

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

          '--- Set Padding to 4 points
          brdr.Padding = 80
        
  • No labels