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

 together

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

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

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

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

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

{example}
Signature
C#C#
Wiki Markup
{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.\){excerpt}
{signature:C#}
 public boolean KeepLinesTogether{ get; set; }
Signature
{signature}{signature:vb.net
vb.net
}
Public Property KeepLinesTogether() As Boolean
Remarks
MS Word
{signature}
{remarks}MS Word equivalent: Format menu > ParagraphFormatting... > Line and Page Breaks tab > Pagination section > Keep lines
together
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle