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)

Usage

Dim paragraphs1 As Paragraphs

Dim returnValue As Integer
returnValue = paragraphs1.KeepWithNext

Dim sampleValue As Integer
paragraphs1.KeepWithNext = sampleValue

Syntax

Property KeepWithNext() As Integer
int KeepWithNext {get; set;}
property Int32 KeepWithNext{
    Int32 get();
    Void set(Int32);
}
public int get_KeepWithNext();
public void set_KeepWithNext(int);
function get KeepWithNext() : int;
function set KeepWithNext(int);

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.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

Paragraphs Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

Paragraphs Members