Sets or returns a boolean that represents if Word attempts to keep all lines of a paragraph on the same page. (It prevents a page break within a paragraph.)

 public boolean KeepLinesTogether{ get; set; }
Public Property KeepLinesTogether() As Boolean

MS Word equivalent: Format menu > ParagraphFormatting... > Line and Page Breaks tab > Pagination section > Keep lines together


          //--- Return KeepLinesTogether
          bool keepLinesTogether = oParagraphFormatting.KeepLinesTogether;

          //--- Set KeepLinesTogether
          oParagraphFormatting.KeepLinesTogether = true;
        

          '--- Return KeepLinesTogether
          Dim keepLinesTogether As Boolean = oParagraphFormatting.KeepLinesTogether

          '--- Set KeepLinesTogether
          oParagraphFormatting.KeepLinesTogether = True