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 have a paragraph be the start of a new page. (It inserts a manual page break before the paragraph.)

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

MS Word equivalent: Format menu > Paragraph... > Line and Page Breaks tab > Pagination section > Page break before

Example
Code Block
csharp
csharp
titleC#

          //--- Return PageBreakBefore
          bool pageBreakBefore = oParagraphFormatting.PageBreakBefore;

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

          '--- Return PageBreakBefore
          Dim pageBreakBefore As Boolean = oParagraphFormatting.PageBreakBefore

          '--- Set PageBreakBefore
          oParagraphFormatting.PageBreakBefore = True