Forums     Knowledge Base     OfficeWriter Online     
 
 
This documentation is for
OfficeWriter v3.8.1
.NET Platform

View Docs for Another
Version or Platform

Programmer's Reference > WordApplication API > ParagraphFormatting > KeepLinesTogether

KeepLinesTogether Property


C# Signature:

VB.NET Signature:


Description:

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.)

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

KeepLinesTogether is a read / write property.



Examples:

[csharp]
// Return KeepLinesTogether
bool keepLinesTogether = oParagraphFormatting.KeepLinesTogether;
// Set KeepLinesTogether
oParagraphFormatting.KeepLinesTogether(true);
[vbnet]
' Return KeepLinesTogether
Dim keepLinesTogether As Boolean = oParagraphFormatting.KeepLinesTogether
' Set KeepLinesTogether
oParagraphFormatting.KeepLinesTogether(True)


Getter

Signature:

public boolean KeepLinesTogether

Returns:

boolean A boolean that represents if Word attempts to keep all lines of a paragraph on the same page.

Setter

Signature:

public void KeepLinesTogether boolean keep

Type:

boolean



Copyright 2007 © SoftArtisans, Inc. All Rights Reserved.