Paragraphs.KeepWithNext Property

Determines if the specified paragraph remains on the same page as the paragraph that follows it 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 KeepWithNext As Integer
    Get
    Set
'Usage
Dim instance As Paragraphs
Dim value As Integer

value = instance.KeepWithNext

instance.KeepWithNext = value
int KeepWithNext { get; set; }

Property Value

Type: System.Int32

Remarks

This property returns True if the specified paragraph remains on the same page as the paragraph that follows it when Microsoft Word repaginates the document, and False if not. Set the property value to True or False to enable or disable the functionality.

Possible values are True, False, or wdUndefined.

See Also

Reference

Paragraphs Interface

Paragraphs Members

Microsoft.Office.Interop.Word Namespace