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 attempts to keep all lines of a paragraph on the same page. (It prevents a page break within a paragraph.)

Signature
C#
C#
 public boolean KeepLinesTogether{ get; set; }
{signature}{signature:
}
Signature
vb.net
vb.net
Public Property KeepLinesTogether() As Boolean
{signature}
{remarks}MS Word 
Remarks

MS Word equivalent:

Format

menu

>

ParagraphFormatting...

>

Line

and

Page

Breaks

tab

>

Pagination

section

>

Keep

lines

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

together

Example
Code Block
csharp
csharp
titleC#


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

          //--- Set KeepLinesTogether
          oParagraphFormatting.KeepLinesTogether = true;
        
{code} {code:
Code Block
vb.net
|title=
vb.net
titlevb.net
}


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

          '--- Set KeepLinesTogether
          oParagraphFormatting.KeepLinesTogether = True
        
{code} {example}