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 a boolean that represents if Word will automatically handle spacing above a paragraph.

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

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

Example
Code Block
csharp
csharp
titleC#

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

          //--- Set BeforeAutoSpacing
          oParagraphFormatting.BeforeAutoSpacing = true;
        
Code Block
vb.net
vb.net
titlevb.net

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

          '--- Set BeforeAutoSpacing
          oParagraphFormatting.BeforeAutoSpacing = True