Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Description

Excerpt

Sets or returns a boolean that represents if Word attempts to keep a paragraph on the same page as the next paragraph. (It prevents a page break a paragraph and the next paragraph.)

 next

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

          //--- Return KeepWithNext
          bool keepWithNext = oParagraphFormatting.KeepWithNext;

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

          '--- Return KeepWithNext
          Dim keepWithNext As Boolean = oParagraphFormatting.KeepWithNext

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

{example}
Signature
C#C#
Wiki Markup
{description}
{excerpt}Sets or returns a {{boolean}} that represents if Word attempts to keep a paragraph on the same page as the next paragraph. \(It prevents a page break a paragraph and the next paragraph.\){excerpt}
{signature:C#}
 public boolean KeepWithNext{ get; set; }
Signature
{signature}{signature:vb.net
vb.net
}
Public Property KeepWithNext() As Boolean
Remarks
MS Word
{signature}
{remarks}MS Word equivalent: Format menu > Paragraph... > Line and Page Breaks tab > Pagination section > Keep with
next
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle