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
Wiki Markup
{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.\){excerpt}
{signature:C#}
 public boolean PageBreakBefore{ get; set; }
{signature}{signature:vb.net}
Public Property PageBreakBefore() As Boolean
{signature}
{remarks}MS Word equivalent: Format menu > Paragraph... > Line and Page Breaks tab > Pagination section > Page break before

{remarks}
{example}{code:csharp|title=C#}

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

          //--- Set PageBreakBefore
          oParagraphFormatting.PageBreakBefore = true;
        {code}
{code:vb.net|title=vb.net}

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

          '--- Set PageBreakBefore
          oParagraphFormatting.PageBreakBefore = True
        {code}

{example}