Skip to end of metadata
Go to start of metadata

Description

Sets or returns a boolean that represents if Word will automatically handle spacing above a paragraph.

C#
 public boolean BeforeAutoSpacing{ get; set; }
vb.net
Public Property BeforeAutoSpacing() As Boolean

Remarks

MS Word equivalent: Format menu > Paragraph... > Indents and Spacing tab > Spacing section > Before:

Examples

C#

          //--- Return BeforeAutoSpacing
          bool beforeAutoSpacing = oParagraphFormatting.BeforeAutoSpacing;

          //--- Set BeforeAutoSpacing
          oParagraphFormatting.BeforeAutoSpacing = true;
        
vb.net

          '--- Return BeforeAutoSpacing
          Dim beforeAutoSpacing As Boolean = oParagraphFormatting.BeforeAutoSpacing

          '--- Set BeforeAutoSpacing
          oParagraphFormatting.BeforeAutoSpacing = True
        
  • No labels