Paragraph.KeepTogether Property
Determines if all lines in the specified paragraphs remain on the same page when Microsoft Word repaginates the document.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Property KeepTogether As Integer
Get
Set
'Usage
Dim instance As Paragraph
Dim value As Integer
value = instance.KeepTogether
instance.KeepTogether = value
int KeepTogether { get; set; }
Property Value
Type: System.Int32
Remarks
This property returns True if all lines in the specified paragraphs remain on the same page when Word repaginates the document, and False if not. Set the property value to True or False to enable or disable the functionality.
Possible return values are True, False, or wdUndefined.